#include <SpriteBatch.h>
Public Member Functions | |
SpriteBatch () | |
void | Release () |
void | setLayer (int layer) |
void | drawSprite (Texture ^tex, int x, int y, int ofsx, int ofsy, int w, int h, float rot, float u0, float v0, float u1, float v1, float r, float g, float b, float a, int zOrder, Shader ^shd, bool clip) |
void | drawSprite (SharpKmyMath::Matrix4 mtx, Texture^ tex, int ofsx, int ofsy, int w, int 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 (Texture^ tex, int x, int y, int ofsx, int ofsy, int w, int h, float rot, float u0, float v0, float u1, float v1, float r, float g, float b, float a) |
void | setMask (SharpKmyMath::Matrix4 mtx, Texture^ tex, int ofsx, int ofsy, int w, int h, float u0, float v0, float u1, float v1, float r, float g, float b, float a) |
void | resetMask () |
void | pushClip (SharpKmyMath::Matrix4 mtx, int clipX, int clipY, int clipWidth, int clipHeight, bool recurisve) |
void | popClip () |
void | drawText (Font^ font, cli::array< byte >^ text, int x, int y, float r, float g, float b, float a, float scale, int zOrder, bool italic, bool clip) |
void | drawRect (int x, int y, int w, int h, float rot, float r, float g, float b, float a, float scale, bool clip, int zOrder) |
void | drawLineRect (int x, int y, int offsetX, int offsetY, int w, int h, float rot, float r, float g, float b, float a, float scale, int zOrder) |
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, int w, int h, float r, float g, float b, float a, bool clip, int zOrder) |
void | drawLineRect (SharpKmyMath::Matrix4 mtx, int offsetX, int offsetY, int w, int 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 (int width, int height) |
InternalCommandList | createCommandList (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 | ( | ) |
InternalCommandList SharpKmyGfx::SpriteBatch::createCommandList | ( | Framebuffer^ | fb, |
int | screenWidth, | ||
int | screenHeight | ||
) |
void SharpKmyGfx::SpriteBatch::drawLineRect | ( | int | x, |
int | y, | ||
int | offsetX, | ||
int | offsetY, | ||
int | w, | ||
int | h, | ||
float | rot, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a, | ||
float | scale, | ||
int | zOrder | ||
) |
void SharpKmyGfx::SpriteBatch::drawLineRect | ( | SharpKmyMath::Matrix4 | mtx, |
int | offsetX, | ||
int | offsetY, | ||
int | w, | ||
int | h, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a, | ||
int | zOrder | ||
) |
void SharpKmyGfx::SpriteBatch::drawRect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
float | rot, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a, | ||
float | scale, | ||
bool | clip, | ||
int | zOrder | ||
) |
void SharpKmyGfx::SpriteBatch::drawRect | ( | SharpKmyMath::Matrix4 | mtx, |
int | w, | ||
int | h, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a, | ||
bool | clip, | ||
int | zOrder | ||
) |
void SharpKmyGfx::SpriteBatch::drawSprite | ( | SharpKmyMath::Matrix4 | mtx, |
Texture^ | tex, | ||
int | ofsx, | ||
int | ofsy, | ||
int | w, | ||
int | 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::drawSprite | ( | Texture ^ | tex, |
int | x, | ||
int | y, | ||
int | ofsx, | ||
int | ofsy, | ||
int | w, | ||
int | h, | ||
float | rot, | ||
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 | ( | Font^ | font, |
cli::array< byte >^ | text, | ||
int | x, | ||
int | y, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a, | ||
float | scale, | ||
int | zOrder, | ||
bool | italic, | ||
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, |
int | clipX, | ||
int | clipY, | ||
int | clipWidth, | ||
int | 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, | ||
int | ofsx, | ||
int | ofsy, | ||
int | w, | ||
int | h, | ||
float | u0, | ||
float | v0, | ||
float | u1, | ||
float | v1, | ||
float | r, | ||
float | g, | ||
float | b, | ||
float | a | ||
) |
void SharpKmyGfx::SpriteBatch::setMask | ( | Texture^ | tex, |
int | x, | ||
int | y, | ||
int | ofsx, | ||
int | ofsy, | ||
int | w, | ||
int | h, | ||
float | rot, | ||
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 | ( | int | width, |
int | height | ||
) |
void SharpKmyGfx::SpriteBatch::setViewMatrix | ( | SharpKmyMath::Matrix4 | view | ) |
kmyGfx::SpriteBatch* SharpKmyGfx::SpriteBatch::obj = nullptr |