Summary

Used to render to the screen using your Graphics Card, or whatever you kids are using in your crazy future computers. Whatever it is I'm sure it isn't fungible and everyone has free money and no-one has to ever work.

Static Properties

Attributes Access to the current render context's attributes. These will be used to set attributes in materials/shaders. This is cleared at the end of the render block.
CameraPosition The camera position of the currently rendering view
CameraRotation The camera rotation of the currently rendering view
CameraTransform The camera transform of the currently rendering view
FieldOfView The field of view of the currently rendering camera view, in degrees.
IsActive If true then we're currently rendering and you are safe to use the contents of this class
LayerType The current layer type. This is useful to tell whether you're meant to be drawing opaque, transparent or shadow. You mainly don't need to think about this, but when you do, it's here.
RenderTarget Get or set the current render target. Setting this will bind the render target and change the viewport to match it.
Viewport In pixel size, where are we rendering to?

Static Methods

Blit
Clear
CopyTexture
Draw
DrawIcon
DrawModel
DrawModelInstanced
DrawModelInstancedIndirect
DrawQuad
DrawRoundedRectangle
DrawText
GenerateMipMaps
GrabDepthTexture
GrabFrameTexture
MeasureText
Render
RenderToTexture
ResourceBarrierTransition
SetupLighting
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.