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

Public Member Functions

 Render ()
 
 Render (int priority, int width, int height)
 
void Release ()
 
Texture getColorTexture ()
 
Texture getDepthTexture ()
 
void setClearMask (UInt32 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, out float depth)
 
void getColor (int x, int y, int w, int h, UInt32[] buffer)
 
void setViewMatrix (SharpKmyMath.Matrix4 proj, SharpKmyMath.Matrix4 view)
 
void addDrawable (Drawable drawable)
 
void getViewMatrix (ref SharpKmyMath.Matrix4 proj, ref 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 Render getRender2D ()
 
static Render getRenderL ()
 
static Render getRenderR ()
 
static void makeBatchAndDrawCallAll ()
 
static bool isSameScene (Render s1, Render s2)
 

Public Attributes

bool owned
 

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]

void SharpKmyGfx.Render.getColor ( int  x,
int  y,
int  w,
int  h,
UInt32[]  buffer 
)

◆ getColor() [2/2]

SharpKmyGfx.Color SharpKmyGfx.Render.getColor ( int  x,
int  y,
out float  depth 
)

◆ getColorTexture()

Texture SharpKmyGfx.Render.getColorTexture ( )

◆ getDefaultRender()

static Render SharpKmyGfx.Render.getDefaultRender ( )
static

◆ getDepthTexture()

Texture SharpKmyGfx.Render.getDepthTexture ( )

◆ getRender2D()

static Render SharpKmyGfx.Render.getRender2D ( )
static

◆ getRenderL()

static Render SharpKmyGfx.Render.getRenderL ( )
static

◆ getRenderR()

static Render SharpKmyGfx.Render.getRenderR ( )
static

◆ getViewMatrix()

void SharpKmyGfx.Render.getViewMatrix ( ref SharpKmyMath.Matrix4  proj,
ref SharpKmyMath.Matrix4  view 
)

◆ isSameScene()

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

◆ makeBatchAndDrawCall()

void SharpKmyGfx.Render.makeBatchAndDrawCall ( )

◆ makeBatchAndDrawCallAll()

static 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 ( UInt32  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