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

#include <SpriteBatch.h>

Public Member Functions

 SpriteBatch ()
 
void Release ()
 
void setLayer (int layer)
 
void drawSprite (SharpKmyMath::Matrix4 mtx, Texture^ tex, float ofsx, float ofsy, float w, float h, float u0, float v0, float u1, float v1, float r, float g, float b, float a, int zOrder, Shader^ shd, bool clip)
 
void setMask (SharpKmyMath::Matrix4 mtx, Texture^ tex, float ofsx, float ofsy, float w, float h, float u0, float v0, float u1, float v1, float r, float g, float b, float a)
 
void resetMask ()
 
void pushClip (SharpKmyMath::Matrix4 mtx, float clipX, float clipY, float clipWidth, float clipHeight, bool recurisve)
 
void popClip ()
 
void drawText (SharpKmyMath::Matrix4 mtx, Font^ font, cli::array< byte >^ text, float r, float g, float b, float a, int zOrder, bool italic, bool clip)
 
void drawRect (SharpKmyMath::Matrix4 mtx, float w, float h, float r, float g, float b, float a, int zOrder, bool useClip)
 
void drawLineRect (SharpKmyMath::Matrix4 mtx, float ofsx, float ofsy, float w, float h, float r, float g, float b, float a, int zOrder)
 
void setCameraMatrix (float fovy, float xAngle, float yAngle)
 
void setProjectionMatrix (SharpKmyMath::Matrix4 proj)
 
void setViewMatrix (SharpKmyMath::Matrix4 view)
 
void setScreenSizeX (float width, float height)
 
void createCommandList (InternalCommandBuffer^ icb, Framebuffer^ fb, int screenWidth, int screenHeight)
 

Static Public Member Functions

static SharpKmyMath::Matrix4 makeMatrix (float posX, float posY, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float pivotX, float pivotY)
 

Public Attributes

kmyGfx::SpriteBatch * obj = nullptr
 

Constructor & Destructor Documentation

◆ SpriteBatch()

SharpKmyGfx::SpriteBatch::SpriteBatch ( )

Member Function Documentation

◆ createCommandList()

void SharpKmyGfx::SpriteBatch::createCommandList ( InternalCommandBuffer icb,
Framebuffer fb,
int  screenWidth,
int  screenHeight 
)

◆ drawLineRect()

void SharpKmyGfx::SpriteBatch::drawLineRect ( SharpKmyMath::Matrix4  mtx,
float  ofsx,
float  ofsy,
float  w,
float  h,
float  r,
float  g,
float  b,
float  a,
int  zOrder 
)

◆ drawRect()

void SharpKmyGfx::SpriteBatch::drawRect ( SharpKmyMath::Matrix4  mtx,
float  w,
float  h,
float  r,
float  g,
float  b,
float  a,
int  zOrder,
bool  useClip 
)

◆ drawSprite()

void SharpKmyGfx::SpriteBatch::drawSprite ( SharpKmyMath::Matrix4  mtx,
Texture tex,
float  ofsx,
float  ofsy,
float  w,
float  h,
float  u0,
float  v0,
float  u1,
float  v1,
float  r,
float  g,
float  b,
float  a,
int  zOrder,
Shader shd,
bool  clip 
)

◆ drawText()

void SharpKmyGfx::SpriteBatch::drawText ( SharpKmyMath::Matrix4  mtx,
Font font,
cli::array< byte >^  text,
float  r,
float  g,
float  b,
float  a,
int  zOrder,
bool  italic,
bool  clip 
)

◆ makeMatrix()

SharpKmyMath::Matrix4 SharpKmyGfx::SpriteBatch::makeMatrix ( float  posX,
float  posY,
float  rotX,
float  rotY,
float  rotZ,
float  scaleX,
float  scaleY,
float  pivotX,
float  pivotY 
)
static

◆ popClip()

void SharpKmyGfx::SpriteBatch::popClip ( )

◆ pushClip()

void SharpKmyGfx::SpriteBatch::pushClip ( SharpKmyMath::Matrix4  mtx,
float  clipX,
float  clipY,
float  clipWidth,
float  clipHeight,
bool  recurisve 
)

◆ Release()

void SharpKmyGfx::SpriteBatch::Release ( )

◆ resetMask()

void SharpKmyGfx::SpriteBatch::resetMask ( )

◆ setCameraMatrix()

void SharpKmyGfx::SpriteBatch::setCameraMatrix ( float  fovy,
float  xAngle,
float  yAngle 
)

◆ setLayer()

void SharpKmyGfx::SpriteBatch::setLayer ( int  layer)

◆ setMask()

void SharpKmyGfx::SpriteBatch::setMask ( SharpKmyMath::Matrix4  mtx,
Texture tex,
float  ofsx,
float  ofsy,
float  w,
float  h,
float  u0,
float  v0,
float  u1,
float  v1,
float  r,
float  g,
float  b,
float  a 
)

◆ setProjectionMatrix()

void SharpKmyGfx::SpriteBatch::setProjectionMatrix ( SharpKmyMath::Matrix4  proj)

◆ setScreenSizeX()

void SharpKmyGfx::SpriteBatch::setScreenSizeX ( float  width,
float  height 
)

◆ setViewMatrix()

void SharpKmyGfx::SpriteBatch::setViewMatrix ( SharpKmyMath::Matrix4  view)

Member Data Documentation

◆ obj

kmyGfx::SpriteBatch* SharpKmyGfx::SpriteBatch::obj = nullptr