#include <Render.h>
Public Member Functions | |
Render () | |
Render (int priority, int width, int height) | |
void | Release () |
Texture | getColorTexture () |
Texture | getDepthTexture () |
void | setClearMask (u32 mask) |
void | setClearColor (float r, float g, float b, float a) |
void | setViewport (int x, int y, int width, int height) |
SharpKmyGfx::Color | getColor (int x, int y, float %depth) |
void | getColor (int x, int y, int w, int h, array< UINT32 > ^buffer) |
void | setViewMatrix (SharpKmyMath::Matrix4 proj, SharpKmyMath::Matrix4 view) |
void | addDrawable (Drawable ^drawable) |
void | getViewMatrix (SharpKmyMath::Matrix4 %proj, SharpKmyMath::Matrix4 %view) |
bool | viewVolumeCheck (SharpKmyMath::Vector3 pos, float radius) |
void | setAmbientColor (SharpKmyMath::Vector3 color) |
void | makeBatchAndDrawCall () |
virtual void | draw () |
Static Public Member Functions | |
static Render | getDefaultRender () |
static void | makeBatchAndDrawCallAll () |
static bool | isSameScene (Render ^s1, Render ^s2) |
Public Attributes | |
bool | owned |
SharpKmyMath::Matrix4 | proj |
SharpKmyMath::Matrix4 | view |
Renderクラス
SharpKmyGfx::Render::Render | ( | ) |
SharpKmyGfx::Render::Render | ( | int | priority, |
int | width, | ||
int | height | ||
) |
void SharpKmyGfx::Render::addDrawable | ( | Drawable ^ | drawable | ) |
|
virtual |
SharpKmyGfx::Color SharpKmyGfx::Render::getColor | ( | int | x, |
int | y, | ||
float % | depth | ||
) |
void SharpKmyGfx::Render::getColor | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
array< UINT32 > ^ | buffer | ||
) |
Texture SharpKmyGfx::Render::getColorTexture | ( | ) |
|
static |
デフォルトレンダーを取得
Texture SharpKmyGfx::Render::getDepthTexture | ( | ) |
void SharpKmyGfx::Render::getViewMatrix | ( | SharpKmyMath::Matrix4 % | proj, |
SharpKmyMath::Matrix4 % | view | ||
) |
void SharpKmyGfx::Render::makeBatchAndDrawCall | ( | ) |
|
static |
void SharpKmyGfx::Render::Release | ( | ) |
void SharpKmyGfx::Render::setAmbientColor | ( | SharpKmyMath::Vector3 | color | ) |
void SharpKmyGfx::Render::setClearColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
void SharpKmyGfx::Render::setClearMask | ( | u32 | mask | ) |
void SharpKmyGfx::Render::setViewMatrix | ( | SharpKmyMath::Matrix4 | proj, |
SharpKmyMath::Matrix4 | view | ||
) |
void SharpKmyGfx::Render::setViewport | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
bool SharpKmyGfx::Render::viewVolumeCheck | ( | SharpKmyMath::Vector3 | pos, |
float | radius | ||
) |
bool SharpKmyGfx::Render::owned |
SharpKmyMath::Matrix4 SharpKmyGfx::Render::proj |
SharpKmyMath::Matrix4 SharpKmyGfx::Render::view |