Just™ Game Engine
Enumerations | Functions
jng::RendererAPI Namespace Reference

Enumerations

enum class  PrimitiveType {
  Lines ,
  Triangles
}
 
enum class  IndexType {
  U8 ,
  U16 ,
  U32
}
 

Functions

void setViewport (u32 x, u32 y, u32 width, u32 height)
 
void clear (const glm::vec3 &color)
 
void draw (u32 count, PrimitiveType primitiveType=PrimitiveType::Triangles)
 
void drawIndexed (u32 count, IndexType indexType, PrimitiveType primitiveType=PrimitiveType::Triangles)
 

Enumeration Type Documentation

◆ IndexType

enum class jng::RendererAPI::IndexType
strong
Enumerator
U8 
U16 
U32 

◆ PrimitiveType

Enumerator
Lines 
Triangles 

Function Documentation

◆ clear()

void jng::RendererAPI::clear ( const glm::vec3 &  color)

◆ draw()

void jng::RendererAPI::draw ( u32  count,
RendererAPI::PrimitiveType  primitiveType = PrimitiveType::Triangles 
)

◆ drawIndexed()

void jng::RendererAPI::drawIndexed ( u32  count,
IndexType  indexType,
PrimitiveType  primitiveType = PrimitiveType::Triangles 
)

◆ setViewport()

void jng::RendererAPI::setViewport ( u32  x,
u32  y,
u32  width,
u32  height 
)