Logo
Public Member Functions | Public Attributes | List of all members
SharpKmyGfx::InternalCommandBuffer Class Reference

#include <InternalCommandBuffer.h>

Public Member Functions

 InternalCommandBuffer ()
 
 InternalCommandBuffer (kmyGfx::GameViewDrawCommandBuffer *ptr)
 
 ~InternalCommandBuffer ()
 
void drawVertices (PrimitiveType prim, ICBMaterial^ mtl, SharpKmyMath::Matrix4 transform, VertexBuffer^ vb)
 
void drawVertices (PrimitiveType prim, ICBMaterial^ mtl, SharpKmyMath::Matrix4 transform, array< SharpKmyMath::Vector3 >^ data)
 
void drawVertices (PrimitiveType prim, ICBMaterial^ mtl, SharpKmyMath::Matrix4 transform, array< VertexPositionColor >^ data)
 
void drawVertices (PrimitiveType prim, ICBMaterial^ mtl, SharpKmyMath::Matrix4 transform, array< VertexPositionTextureColor >^ data)
 
void drawModelInstance (ModelInstance^ mdl, Material^ mtl)
 
void drawScreen (Material^ mtl)
 
void bindFramebuffer (Framebuffer^ fb)
 
void copyFramebuffer (Texture^ tex, int x, int y, int w, int h)
 
void clearFramebuffer (float r, float g, float b, float a, bool color, bool depth, bool stencil)
 
void viewport (u16 x, u16 y, u16 w, u16 h)
 
void reset ()
 

Public Attributes

kmyGfx::GameViewDrawCommandBuffer * _obj = nullptr
 
bool _own = false
 

Constructor & Destructor Documentation

◆ InternalCommandBuffer() [1/2]

SharpKmyGfx::InternalCommandBuffer::InternalCommandBuffer ( )

◆ InternalCommandBuffer() [2/2]

SharpKmyGfx::InternalCommandBuffer::InternalCommandBuffer ( kmyGfx::GameViewDrawCommandBuffer *  ptr)

◆ ~InternalCommandBuffer()

SharpKmyGfx::InternalCommandBuffer::~InternalCommandBuffer ( )

Member Function Documentation

◆ bindFramebuffer()

void SharpKmyGfx::InternalCommandBuffer::bindFramebuffer ( Framebuffer fb)

◆ clearFramebuffer()

void SharpKmyGfx::InternalCommandBuffer::clearFramebuffer ( float  r,
float  g,
float  b,
float  a,
bool  color,
bool  depth,
bool  stencil 
)

◆ copyFramebuffer()

void SharpKmyGfx::InternalCommandBuffer::copyFramebuffer ( Texture tex,
int  x,
int  y,
int  w,
int  h 
)

◆ drawModelInstance()

void SharpKmyGfx::InternalCommandBuffer::drawModelInstance ( ModelInstance mdl,
Material mtl 
)

◆ drawScreen()

void SharpKmyGfx::InternalCommandBuffer::drawScreen ( Material mtl)

◆ drawVertices() [1/4]

void SharpKmyGfx::InternalCommandBuffer::drawVertices ( PrimitiveType  prim,
ICBMaterial mtl,
SharpKmyMath::Matrix4  transform,
array< SharpKmyMath::Vector3 >^  data 
)

◆ drawVertices() [2/4]

void SharpKmyGfx::InternalCommandBuffer::drawVertices ( PrimitiveType  prim,
ICBMaterial mtl,
SharpKmyMath::Matrix4  transform,
array< VertexPositionColor >^  data 
)

◆ drawVertices() [3/4]

void SharpKmyGfx::InternalCommandBuffer::drawVertices ( PrimitiveType  prim,
ICBMaterial mtl,
SharpKmyMath::Matrix4  transform,
array< VertexPositionTextureColor >^  data 
)

◆ drawVertices() [4/4]

void SharpKmyGfx::InternalCommandBuffer::drawVertices ( PrimitiveType  prim,
ICBMaterial mtl,
SharpKmyMath::Matrix4  transform,
VertexBuffer vb 
)

◆ reset()

void SharpKmyGfx::InternalCommandBuffer::reset ( )

◆ viewport()

void SharpKmyGfx::InternalCommandBuffer::viewport ( u16  x,
u16  y,
u16  w,
u16  h 
)

Member Data Documentation

◆ _obj

kmyGfx::GameViewDrawCommandBuffer* SharpKmyGfx::InternalCommandBuffer::_obj = nullptr

◆ _own

bool SharpKmyGfx::InternalCommandBuffer::_own = false