Arcade
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GameAPI.GraphicsBase< TGame, TImplementation > Class Template Reference

Base class for graphics hardware interfaces. More...

Inheritance diagram for GameAPI.GraphicsBase< TGame, TImplementation >:
GameAPI.Peripheral< TGame, TProvider, TImplementation > GameAPI.Peripheral GameAPI.BudgetBoy.Graphics

Protected Member Functions

override void OnAttachImplementation ()
 
- Protected Member Functions inherited from GameAPI.Peripheral< TGame, TProvider, TImplementation >
override void OnInitialize ()
 
- Protected Member Functions inherited from GameAPI.Peripheral
void ClearFrameWriter ()
 
virtual void OnRegisterResourceTypes (ResourceManager library)
 
virtual void OnLoadResources (Resources volume)
 
virtual void OnReset ()
 
virtual void OnDeserializeSetup (Stream stream)
 
virtual void OnSerializeSetup (Stream stream)
 
virtual void OnStartControlling ()
 
virtual void OnStopControlling ()
 
virtual void OnDeserializeFrame (Stream stream)
 
virtual void OnUpdateFrame (double dt)
 
virtual void OnSerializeFrame (Stream stream)
 
virtual void OnCopyFrame (Stream stream)
 

Properties

int Width [get]
 Horizontal resolution of the screen in pixels. More...
 
int Height [get]
 Vertical resolution of the screen in pixels. More...
 
int LastFrameSize [get]
 Number of bytes of graphical data drawn last frame. More...
 
Vector2I Size [get]
 Resolution of the screen in pixels. More...
 
float Aspect [get]
 Aspect ratio of the screen. More...
 
bool ShouldSerialize [get]
 
- Properties inherited from GameAPI.Peripheral< TGame, TProvider, TImplementation >
virtual bool ShouldUpdate [get]
 
- Properties inherited from GameAPI.Peripheral
BinaryWriter FrameWriter [get]
 

Additional Inherited Members

- Public Member Functions inherited from GameAPI.Peripheral< TGame, TProvider, TImplementation >
override void Dispose ()
 

Detailed Description

Base class for graphics hardware interfaces.

Type Constraints
TGame :GameBase 
TImplementation :PeripheralImplementation<GraphicsProvider> 
TImplementation :new() 

Member Function Documentation

override void GameAPI.GraphicsBase< TGame, TImplementation >.OnAttachImplementation ( )
inlineprotectedvirtual

Property Documentation

float GameAPI.GraphicsBase< TGame, TImplementation >.Aspect
get

Aspect ratio of the screen.

int GameAPI.GraphicsBase< TGame, TImplementation >.Height
get

Vertical resolution of the screen in pixels.

int GameAPI.GraphicsBase< TGame, TImplementation >.LastFrameSize
get

Number of bytes of graphical data drawn last frame.

bool GameAPI.GraphicsBase< TGame, TImplementation >.ShouldSerialize
getprotected
Vector2I GameAPI.GraphicsBase< TGame, TImplementation >.Size
get

Resolution of the screen in pixels.

int GameAPI.GraphicsBase< TGame, TImplementation >.Width
get

Horizontal resolution of the screen in pixels.