C# Class Clandestine.Graphics

Mostra file Open project: mrmikey/nes

Public Properties

Property Type Description
EatCPU bool
GlobalColor GLColor
GraphicsThread Thread
NPOTAllowed bool
PerformSlowDebugDepthChecking bool
RenderLockBlob object
Renderables List
ScreenHeight int
ScreenWidth int

Public Methods

Method Description
Deinitialise ( ) : void
Initialise ( int width, int height ) : void
Initialise ( int width, int height, int zoomOverride ) : void
Render ( ) : void
RestoreWindow ( ) : void
SetWindowTitle ( string windowTitle ) : void

Private Methods

Method Description
Intersects ( Rectangle tthis, Rectangle value ) : bool
NotifyRenderablesDepthChange ( ) : void
OnWindowClose ( ) : int
checkForDepthProblems ( Renderable r1, Renderable r2 ) : void
compareRenderablesDepths ( Renderable r1, Renderable r2 ) : int

Method Details

Deinitialise() public static method

public static Deinitialise ( ) : void
return void

Initialise() public static method

public static Initialise ( int width, int height ) : void
width int
height int
return void

Initialise() public static method

public static Initialise ( int width, int height, int zoomOverride ) : void
width int
height int
zoomOverride int
return void

Render() public static method

public static Render ( ) : void
return void

RestoreWindow() public static method

public static RestoreWindow ( ) : void
return void

SetWindowTitle() public static method

public static SetWindowTitle ( string windowTitle ) : void
windowTitle string
return void

Property Details

EatCPU public_oe static_oe property

public static bool EatCPU
return bool

GlobalColor public_oe static_oe property

public static GLColor GlobalColor
return GLColor

GraphicsThread public_oe static_oe property

public static Thread GraphicsThread
return Thread

NPOTAllowed public_oe static_oe property

Dictates whether textures with sizes that aren't a power of two are allowed. If this is set to false, some quick hax will be applied to work around the lack of capability in the hardware. (Logic for setting this is in Initialise()).
public static bool NPOTAllowed
return bool

PerformSlowDebugDepthChecking public_oe static_oe property

public static bool PerformSlowDebugDepthChecking
return bool

RenderLockBlob public_oe static_oe property

public static object RenderLockBlob
return object

Renderables public_oe static_oe property

public static List Renderables
return List

ScreenHeight public_oe static_oe property

public static int ScreenHeight
return int

ScreenWidth public_oe static_oe property

public static int ScreenWidth
return int