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 ()
 
 !InternalCommandBuffer ()
 
void reset ()
 
void bindFramebuffer (Framebuffer^ fb)
 
void viewport (u16 x, u16 y, u16 w, u16 h)
 
void clearFramebuffer (float r, float g, float b, float a, bool color, bool depth, bool stencil)
 
void setMatrix (SharpKmyMath::Matrix4 proj, SharpKmyMath::Matrix4 view)
 
void storeSystemParameter ()
 
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, ShaderPass pass, bool ditherTranslucent)
 
void drawGeometry (GeometryInstance^ gi, Material^ mtl, ShaderPass pass, bool ditherTranslucent)
 
void drawGeometries (System::Func< GeometryInstance^, bool > ^filter, Material^ mtl, ShaderPass pass, bool ditherTranslucent)
 
void drawScreen (Material^ mtl)
 
void execImmediate ()
 
void copyFramebuffer (Texture^ tex, int x, int y, int w, int h)
 

Public Attributes

kmyGfx::SYSTEMLAYOUT * _lyt = nullptr
 
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 ( )

◆ !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 
)

◆ drawGeometries()

void SharpKmyGfx::InternalCommandBuffer::drawGeometries ( System::Func< GeometryInstance^, bool > ^  filter,
Material mtl,
ShaderPass  pass,
bool  ditherTranslucent 
)

◆ drawGeometry()

void SharpKmyGfx::InternalCommandBuffer::drawGeometry ( GeometryInstance gi,
Material mtl,
ShaderPass  pass,
bool  ditherTranslucent 
)

◆ drawModelInstance()

void SharpKmyGfx::InternalCommandBuffer::drawModelInstance ( ModelInstance mdl,
Material mtl,
ShaderPass  pass,
bool  ditherTranslucent 
)

◆ 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 
)

◆ execImmediate()

void SharpKmyGfx::InternalCommandBuffer::execImmediate ( )

◆ reset()

void SharpKmyGfx::InternalCommandBuffer::reset ( )

◆ setMatrix()

void SharpKmyGfx::InternalCommandBuffer::setMatrix ( SharpKmyMath::Matrix4  proj,
SharpKmyMath::Matrix4  view 
)

◆ storeSystemParameter()

void SharpKmyGfx::InternalCommandBuffer::storeSystemParameter ( )

◆ viewport()

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

Member Data Documentation

◆ _lyt

kmyGfx::SYSTEMLAYOUT* SharpKmyGfx::InternalCommandBuffer::_lyt = nullptr

◆ _obj

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

◆ _own

bool SharpKmyGfx::InternalCommandBuffer::_own = false