4#include "gfx/CommonPrimitive.h"
14 obj = TRACK_NEW_CLASS kmyGfx::SpriteBatch();
26 static SharpKmyMath::Matrix4 makeMatrix(
float posX,
float posY,
float rotX,
float rotY,
float rotZ,
float scaleX,
float scaleY,
float pivotX,
float pivotY);
28 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* uniform,
size_t uniformSize);
29 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);
31 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);
38 void drawSpriteVr(
Texture ^tex,
float x,
float y,
float ofsx,
float ofsy,
float w,
float h,
float rot,
float u0,
float v0,
float u1,
float v1,
float r,
float g,
float b,
float a,
int zOrder);
39 void drawSpriteVr(
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);
52 kmyGfx::SpriteBatch *
obj =
nullptr;
Definition: Framebuffer.h:8
Definition: InternalCommandBuffer.h:18
Definition: SpriteBatch.h:9
void setCameraMatrix(float fovy, float xAngle, float yAngle)
Definition: SpriteBatch.cpp:221
void pushClip(SharpKmyMath::Matrix4 mtx, float clipX, float clipY, float clipWidth, float clipHeight, bool recurisve)
Definition: SpriteBatch.cpp:89
static SharpKmyMath::Matrix4 makeMatrix(float posX, float posY, float rotX, float rotY, float rotZ, float scaleX, float scaleY, float pivotX, float pivotY)
Definition: SpriteBatch.cpp:11
void popClip()
Definition: SpriteBatch.cpp:100
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)
Definition: SpriteBatch.cpp:58
SpriteBatch()
Definition: SpriteBatch.h:12
void setProjectionMatrix(SharpKmyMath::Matrix4 proj)
Definition: SpriteBatch.cpp:228
void createCommandList(InternalCommandBuffer^ icb, Framebuffer^ fb, int screenWidth, int screenHeight)
Definition: SpriteBatch.cpp:249
void drawLineRect(SharpKmyMath::Matrix4 mtx, float ofsx, float ofsy, float w, float h, float r, float g, float b, float a, int zOrder)
Definition: SpriteBatch.cpp:205
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)
Definition: SpriteBatch.cpp:160
void setLayer(int layer)
Definition: SpriteBatch.h:22
void setScreenSizeX(float width, float height)
Definition: SpriteBatch.cpp:242
void drawRect(SharpKmyMath::Matrix4 mtx, float w, float h, float r, float g, float b, float a, int zOrder, bool useClip)
Definition: SpriteBatch.cpp:187
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 *uniform, size_t uniformSize)
Definition: SpriteBatch.cpp:24
void setViewMatrix(SharpKmyMath::Matrix4 view)
Definition: SpriteBatch.cpp:235
kmyGfx::SpriteBatch * obj
Definition: SpriteBatch.h:52
void Release()
Definition: SpriteBatch.h:17
void resetMask()
Definition: SpriteBatch.cpp:79