Logo
公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 全メンバ一覧
SharpKmyGfx::SpriteBatch クラス

#include <SpriteBatch.h>

公開メンバ関数

 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 SharpKmyMath::Matrix4 makeMatrix (float posX, float posY, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float pivotX, float pivotY)
 

公開変数類

kmyGfx::SpriteBatch * obj = nullptr
 

構築子と解体子

◆ SpriteBatch()

SharpKmyGfx::SpriteBatch::SpriteBatch ( )

メソッド詳解

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

メンバ詳解

◆ obj

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