![]() |
|
#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 |
SharpKmyGfx::SpriteBatch::SpriteBatch | ( | ) |
void SharpKmyGfx::SpriteBatch::createCommandList | ( | InternalCommandBuffer^ | icb, |
Framebuffer^ | fb, | ||
int | screenWidth, | ||
int | screenHeight | ||
) |
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 | ||
) |
void SharpKmyGfx::SpriteBatch::drawRect | ( | SharpKmyMath::Matrix4 | mtx, |
float | w, | ||
float | h, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a, | ||
int | zOrder, | ||
bool | useClip | ||
) |
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 | ||
) |
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 | ||
) |
|
static |
void SharpKmyGfx::SpriteBatch::popClip | ( | ) |
void SharpKmyGfx::SpriteBatch::pushClip | ( | SharpKmyMath::Matrix4 | mtx, |
float | clipX, | ||
float | clipY, | ||
float | clipWidth, | ||
float | clipHeight, | ||
bool | recurisve | ||
) |
void SharpKmyGfx::SpriteBatch::Release | ( | ) |
void SharpKmyGfx::SpriteBatch::resetMask | ( | ) |
void SharpKmyGfx::SpriteBatch::setCameraMatrix | ( | float | fovy, |
float | xAngle, | ||
float | yAngle | ||
) |
void SharpKmyGfx::SpriteBatch::setLayer | ( | int | layer | ) |
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 | ||
) |
void SharpKmyGfx::SpriteBatch::setProjectionMatrix | ( | SharpKmyMath::Matrix4 | proj | ) |
void SharpKmyGfx::SpriteBatch::setScreenSizeX | ( | float | width, |
float | height | ||
) |
void SharpKmyGfx::SpriteBatch::setViewMatrix | ( | SharpKmyMath::Matrix4 | view | ) |
kmyGfx::SpriteBatch* SharpKmyGfx::SpriteBatch::obj = nullptr |