Vertices Engine  v1.9.2.92
A Cross Platform game engine developed by Virtex Edge Design.
Loading...
Searching...
No Matches
VerticesEngine.Graphics.vxGraphics Class Reference

Graphical Variables like the Main Sprite Sheet and Getting New Render Textures. More...

Classes

class  Util
 Utilities for graphics. More...
 

Static Public Member Functions

static void InitMainBuffer ()
 Inits the main rendertarget which is the final screen which is drawn.
 
static void SetRenderTarget (RenderTarget2D renderTarget)
 
static void Finalise ()
 Finalises the Frame.
 
static void SetRasterizerState (FillMode fillMode)
 Sets the rasterizer state which allows for switching between Wireframe and Solid.
 
static RenderTarget2D GetNewRenderTarget ()
 Creates a new render target using the current resolution.
 
static RenderTarget2D GetNewRenderTarget (float scale)
 
static RenderTarget2D GetNewRenderTarget (int width, int height, bool mipmap=false)
 Creates a new render target using the current resolution with the specified width and height.
 

Static Public Attributes

static Texture2D MainSpriteSheet
 The global sprite sheet which all draw calls should reference for effeciency.
 

Properties

static GraphicsDeviceManager DeviceManager [get]
 
static GraphicsDevice GraphicsDevice [get]
 The current Engine Graphics Device.
 
static PresentationParameters PresentationParameters [get]
 The Current Presentation Parameters.
 
static RenderTarget2D FinalBackBuffer [get]
 The main render target whithout any GUI and Overlay Items.
 
static Viewport FinalViewport [get]
 The final viewport size, i.e. the actual device or screen resolution.
 
static vxLineBatch LineBatch [get]
 Line Batch Manager which draw's a number of 2D Lines to the screen.
 
static vxSpriteBatch SpriteBatch [get]
 A default SpriteBatch shared by all the screens. This saves each screen having to bother creating their own local instance.
 

Detailed Description

Graphical Variables like the Main Sprite Sheet and Getting New Render Textures.

Member Function Documentation

◆ GetNewRenderTarget() [1/2]

static RenderTarget2D VerticesEngine.Graphics.vxGraphics.GetNewRenderTarget ( )
static

Creates a new render target using the current resolution.

Returns

◆ GetNewRenderTarget() [2/2]

static RenderTarget2D VerticesEngine.Graphics.vxGraphics.GetNewRenderTarget ( int width,
int height,
bool mipmap = false )
static

Creates a new render target using the current resolution with the specified width and height.

Parameters
width
height
mipmap
Returns

◆ SetRasterizerState()

static void VerticesEngine.Graphics.vxGraphics.SetRasterizerState ( FillMode fillMode)
static

Sets the rasterizer state which allows for switching between Wireframe and Solid.

Parameters
fillMode

Property Documentation

◆ LineBatch

vxLineBatch VerticesEngine.Graphics.vxGraphics.LineBatch
staticget

Line Batch Manager which draw's a number of 2D Lines to the screen.

The line batch.


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