Resonance Game
Team Walterio Fuchsbauer
 All Classes Namespaces Files Functions Variables Enumerations Properties
Resonance.Drawing Class Reference

List of all members.

Static Public Member Functions

static void setAmbientLight (Vector3 light)
 Change the ambient light level of the scene, use positive values to make it brighter, negative values to make it darker.
static void Clear ()
static void reset ()
static void drawReflection ()
static void drawShadow ()
static void drawReflections ()
static void drawShadows ()
static Texture2D flipTexture (Texture2D source, bool vertical, bool horizontal)
static Texture2D scaleTexture (Texture2D src, float sF)
static Texture2D scaleTexture (Texture2D src, float sFX, float sFY)
static void Init (ContentManager newContent, GraphicsDeviceManager newGraphics)
 Create a drawing object, need to pass it the ContentManager and GraphicsDeviceManger for it to use.
static void loadContent ()
 LoadContent will be called once per game and is the place to load all of your content needed for drawing the world.
static void Update (GameTime gameTime)
 Used to update any frame animation.
static Vector2 groundPos (Vector3 position3d, bool one)
static void addWave (Vector3 position3d)
 Add a displacement wave to the ground texture.
static void DrawTexture (Texture2D texture, Matrix position, float width, float height)
static void Draw (GameTime gameTime)
 This is called when the character and the HUD should be drawn.
static void Draw (Matrix worldTransform, Vector3 pos, Object worldObject)
 This is called when you would like to draw an object on screen.
static void resetGraphics ()
 Reset graphic options which may become corrupted by SpriteBatch.

Static Public Attributes

static bool SHADOWS = false
static int wins1 = 0
static int wins2 = 0

Properties

static ContentManager Content [get]
static bool requestReflectionRender [get]
static bool requestShadowsRender [get]
static bool DoDisp [get, set]
static bool DrawingReflection [get]

Member Function Documentation

static void Resonance.Drawing.addWave ( Vector3  position3d) [static]

Add a displacement wave to the ground texture.

Parameters:
position3d

Here is the call graph for this function:

Here is the caller graph for this function:

static void Resonance.Drawing.Clear ( ) [static]

Here is the caller graph for this function:

static void Resonance.Drawing.Draw ( GameTime  gameTime) [static]

This is called when the character and the HUD should be drawn.

Here is the call graph for this function:

Here is the caller graph for this function:

static void Resonance.Drawing.Draw ( Matrix  worldTransform,
Vector3  pos,
Object  worldObject 
) [static]

This is called when you would like to draw an object on screen.

Parameters:
gameModelNumThe game model reference used for the object you want to draw e.g GameModels.BOX
worldTransformThe world transform for the object you want to draw, use [object body].WorldTransform

Here is the call graph for this function:

static void Resonance.Drawing.drawReflection ( ) [static]

Here is the caller graph for this function:

static void Resonance.Drawing.drawReflections ( ) [static]

Here is the caller graph for this function:

static void Resonance.Drawing.drawShadow ( ) [static]
static void Resonance.Drawing.drawShadows ( ) [static]

Here is the call graph for this function:

static void Resonance.Drawing.DrawTexture ( Texture2D  texture,
Matrix  position,
float  width,
float  height 
) [static]

Here is the call graph for this function:

static Texture2D Resonance.Drawing.flipTexture ( Texture2D  source,
bool  vertical,
bool  horizontal 
) [static]
static Vector2 Resonance.Drawing.groundPos ( Vector3  position3d,
bool  one 
) [static]

Here is the caller graph for this function:

static void Resonance.Drawing.Init ( ContentManager  newContent,
GraphicsDeviceManager  newGraphics 
) [static]

Create a drawing object, need to pass it the ContentManager and GraphicsDeviceManger for it to use.

Here is the call graph for this function:

Here is the caller graph for this function:

static void Resonance.Drawing.loadContent ( ) [static]

LoadContent will be called once per game and is the place to load all of your content needed for drawing the world.

Here is the call graph for this function:

Here is the caller graph for this function:

static void Resonance.Drawing.reset ( ) [static]

Here is the call graph for this function:

Here is the caller graph for this function:

static void Resonance.Drawing.resetGraphics ( ) [static]

Reset graphic options which may become corrupted by SpriteBatch.

Here is the caller graph for this function:

static Texture2D Resonance.Drawing.scaleTexture ( Texture2D  src,
float  sF 
) [static]

Here is the caller graph for this function:

static Texture2D Resonance.Drawing.scaleTexture ( Texture2D  src,
float  sFX,
float  sFY 
) [static]
static void Resonance.Drawing.setAmbientLight ( Vector3  light) [static]

Change the ambient light level of the scene, use positive values to make it brighter, negative values to make it darker.

Parameters:
lightVector3 of the additions that should be made to the RGB of the ambient light

Here is the call graph for this function:

Here is the caller graph for this function:

static void Resonance.Drawing.Update ( GameTime  gameTime) [static]

Used to update any frame animation.

Parameters:
gameTime

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

bool Resonance.Drawing.SHADOWS = false [static]
int Resonance.Drawing.wins1 = 0 [static]
int Resonance.Drawing.wins2 = 0 [static]

Property Documentation

ContentManager Resonance.Drawing.Content [static, get]
bool Resonance.Drawing.DoDisp [static, get, set]

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