Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyGfx::Render Class Reference

#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
 

Detailed Description

Renderクラス

Constructor & Destructor Documentation

◆ Render() [1/2]

SharpKmyGfx::Render::Render ( )

◆ Render() [2/2]

SharpKmyGfx::Render::Render ( int  priority,
int  width,
int  height 
)

Member Function Documentation

◆ addDrawable()

void SharpKmyGfx::Render::addDrawable ( Drawable drawable)

◆ draw()

virtual void SharpKmyGfx::Render::draw ( )
virtual

◆ getColor() [1/2]

SharpKmyGfx::Color SharpKmyGfx::Render::getColor ( int  x,
int  y,
float %  depth 
)

◆ getColor() [2/2]

void SharpKmyGfx::Render::getColor ( int  x,
int  y,
int  w,
int  h,
array< UINT32 > ^  buffer 
)

◆ getColorTexture()

Texture SharpKmyGfx::Render::getColorTexture ( )

◆ getDefaultRender()

Render SharpKmyGfx::Render::getDefaultRender ( )
static

デフォルトレンダーを取得

◆ getDepthTexture()

Texture SharpKmyGfx::Render::getDepthTexture ( )

◆ getViewMatrix()

void SharpKmyGfx::Render::getViewMatrix ( SharpKmyMath::Matrix4 proj,
SharpKmyMath::Matrix4 view 
)

◆ isSameScene()

static bool SharpKmyGfx::Render::isSameScene ( Render s1,
Render s2 
)
static

◆ makeBatchAndDrawCall()

void SharpKmyGfx::Render::makeBatchAndDrawCall ( )

◆ makeBatchAndDrawCallAll()

void SharpKmyGfx::Render::makeBatchAndDrawCallAll ( )
static

◆ Release()

void SharpKmyGfx::Render::Release ( )

◆ setAmbientColor()

void SharpKmyGfx::Render::setAmbientColor ( SharpKmyMath::Vector3  color)

◆ setClearColor()

void SharpKmyGfx::Render::setClearColor ( float  r,
float  g,
float  b,
float  a 
)

◆ setClearMask()

void SharpKmyGfx::Render::setClearMask ( u32  mask)

◆ setViewMatrix()

void SharpKmyGfx::Render::setViewMatrix ( SharpKmyMath::Matrix4  proj,
SharpKmyMath::Matrix4  view 
)

◆ setViewport()

void SharpKmyGfx::Render::setViewport ( int  x,
int  y,
int  width,
int  height 
)

◆ viewVolumeCheck()

bool SharpKmyGfx::Render::viewVolumeCheck ( SharpKmyMath::Vector3  pos,
float  radius 
)

Member Data Documentation

◆ owned

bool SharpKmyGfx::Render::owned

◆ proj

SharpKmyMath::Matrix4 SharpKmyGfx::Render::proj

◆ view

SharpKmyMath::Matrix4 SharpKmyGfx::Render::view