Ritchie's Abstractions 0.2
Platform abstractions that make Toolbox work
Loading...
Searching...
No Matches
GraphicsObject Class Referenceabstract

Base class for all graphics-related objects. These objects, when constructed, are bound to the GraphicsDevice.Current. Therefore, do not create these when no device is current. More...

Inheritance diagram for GraphicsObject:
ConstantBuffer IndexBuffer< TElement > Shader ShaderPipeline Texture VertexBuffer< TElement > FrameBuffer Texture2D

Public Member Functions

void Dispose ()
 

Protected Member Functions

 GraphicsObject ()
 Creates a new GraphicsObject instance.
 
virtual void Dispose (bool disposing)
 Called when it's time to throw out the trash.
 

Properties

GraphicsDevice GraphicsDevice [get]
 Gets the GraphicsDevice instance this GraphicsObject belongs to.
 

Detailed Description

Base class for all graphics-related objects. These objects, when constructed, are bound to the GraphicsDevice.Current. Therefore, do not create these when no device is current.

Constructor & Destructor Documentation

◆ GraphicsObject()

GraphicsObject ( )
inlineprotected

Creates a new GraphicsObject instance.

Exceptions
InvalidOperationExceptionNo graphics device was active when trying to create a GraphicsObject. Your dreams of triangles will not come true. Sorry!

Member Function Documentation

◆ Dispose()

virtual void Dispose ( bool disposing)
inlineprotectedvirtual

Called when it's time to throw out the trash.

Parameters
disposingIf true, please throw away your trash. Skunks!

Reimplemented in ConstantBuffer, FrameBuffer, IndexBuffer< TElement >, Shader, ShaderPipeline, Texture2D, and VertexBuffer< TElement >.


The documentation for this class was generated from the following file: