Kemena3D
Loading...
Searching...
No Matches
kdriver.h File Reference

Abstract graphics driver interface used by the engine. More...

#include "kexport.h"
#include "kdatatype.h"
#include <vector>
#include <cstdint>
Include dependency graph for kdriver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kemena::kDriver
 Pure-virtual graphics driver interface. More...

Namespaces

namespace  kemena
 Top-level Kemena3D engine namespace.

Enumerations

enum class  kemena::kBlendFactor {
  kemena::ZERO , kemena::ONE , kemena::SRC_ALPHA , kemena::ONE_MINUS_SRC_ALPHA ,
  kemena::SRC_COLOR , kemena::ONE_MINUS_SRC_COLOR , kemena::DST_ALPHA , kemena::ONE_MINUS_DST_ALPHA
}
 Source/destination blend factors for alpha blending. More...
enum class  kemena::kCullMode { kemena::BACK , kemena::FRONT , kemena::FRONT_AND_BACK }
 Which polygon faces to cull. More...
enum class  kemena::kFrontFace { kemena::CCW , kemena::CW }
 Winding order that defines the front face of a polygon. More...
enum class  kemena::kPrimitiveType {
  kemena::TRIANGLES , kemena::TRIANGLE_STRIP , kemena::TRIANGLE_FAN , kemena::LINES ,
  kemena::LINE_STRIP , kemena::POINTS
}
 Primitive topology for draw calls. More...

Detailed Description

Abstract graphics driver interface used by the engine.

All graphics API calls made by the engine go through this interface so that the underlying backend (OpenGL, Vulkan, DirectX, …) can be swapped at initialisation time without changing any higher-level code.