Public Member Functions

 DrawInfo ()
 No size - GPU mode. More...
 
 DrawInfo (int width, int height)
 Non-square GPU draw info. More...
 
 DrawInfo (int size)
 Square GPU draw info. More...
 
 DrawInfo (int size, SurfaceDrawMode mode)
 Square GPU draw info. More...
 
void SetSize (int x, int y)
 Non-square texture. More...
 
void Square (int size)
 Square texture (ImageX and ImageY are set equal to size). More...
 
DrawStack GetStack (int id)
 Gets the stack with the given index, or creates it. More...
 
DrawStack CreateStack ()
 Creates and adds a new draw stack. More...
 
void Clear ()
 Clears out this DrawInfo by destroying internal textures. More...
 

Static Public Member Functions

static Mesh CreateLines (int pixelsPerLine, int imageY)
 A series of strips, each pixelsPerLine high. It's used for generating audio with the Loonim pipeline. A 256x256 image can safely generate roughly 33k samples (or about 0.75 seconds of audio) using the GPU. This method may end up being bumped into the SoundSynth module instead. More...
 

Public Attributes

int ImageX
 
int ImageY
 
SurfaceTypeMode SurfaceType =SurfaceTypeMode.Albedo
 The type of image to draw. More...
 
bool HDR =true
 The HDR mode. More...
 
SurfaceDrawMode Mode
 The selected draw mode. More...
 
FilterMode FilterMode =FilterMode.Bilinear
 The pipeline filter mode to use. More...
 
float DeltaX
 A value to advance by on X when scanning the image. More...
 
float DeltaY
 A value to advance by on Y when scanning the image. More...
 
Mesh Mesh
 The mesh to use for standard pipeline nodes. More...
 
List< DrawStackStacks =new List<DrawStack>()
 <summmary>The current set of stacks. More...
 

Package Attributes

TextureNode CurrentParent
 Only available during Draw() passes. This is the current parent node. More...
 
int CurrentIndex
 Only available during Draw() passes. The current index in parents source nodes. More...
 

Properties

int PixelCount [get]
 ImageX * ImageY. More...
 
bool IsSquare [get]
 True if this is drawing a square image. More...
 
static Mesh Quad [get]
 A full screen quad. This is the most commonly used mesh type (it gets set to the DrawInfo.Mesh property by default). More...
 

Static Private Attributes

static Mesh SharedQuad
 The cached fullscreen quad. See Quad. More...
 

Constructor & Destructor Documentation

Loonim.DrawInfo.DrawInfo ( )
inline

No size - GPU mode.

Loonim.DrawInfo.DrawInfo ( int  width,
int  height 
)
inline

Non-square GPU draw info.

Loonim.DrawInfo.DrawInfo ( int  size)
inline

Square GPU draw info.

Loonim.DrawInfo.DrawInfo ( int  size,
SurfaceDrawMode  mode 
)
inline

Square GPU draw info.

Member Function Documentation

void Loonim.DrawInfo.Clear ( )
inline

Clears out this DrawInfo by destroying internal textures.

static Mesh Loonim.DrawInfo.CreateLines ( int  pixelsPerLine,
int  imageY 
)
inlinestatic

A series of strips, each pixelsPerLine high. It's used for generating audio with the Loonim pipeline. A 256x256 image can safely generate roughly 33k samples (or about 0.75 seconds of audio) using the GPU. This method may end up being bumped into the SoundSynth module instead.

DrawStack Loonim.DrawInfo.CreateStack ( )
inline

Creates and adds a new draw stack.

DrawStack Loonim.DrawInfo.GetStack ( int  id)
inline

Gets the stack with the given index, or creates it.

void Loonim.DrawInfo.SetSize ( int  x,
int  y 
)
inline

Non-square texture.

void Loonim.DrawInfo.Square ( int  size)
inline

Square texture (ImageX and ImageY are set equal to size).

Member Data Documentation

int Loonim.DrawInfo.CurrentIndex
package

Only available during Draw() passes. The current index in parents source nodes.

TextureNode Loonim.DrawInfo.CurrentParent
package

Only available during Draw() passes. This is the current parent node.

float Loonim.DrawInfo.DeltaX

A value to advance by on X when scanning the image.

float Loonim.DrawInfo.DeltaY

A value to advance by on Y when scanning the image.

FilterMode Loonim.DrawInfo.FilterMode =FilterMode.Bilinear

The pipeline filter mode to use.

bool Loonim.DrawInfo.HDR =true

The HDR mode.

int Loonim.DrawInfo.ImageX
int Loonim.DrawInfo.ImageY
Mesh Loonim.DrawInfo.Mesh

The mesh to use for standard pipeline nodes.

SurfaceDrawMode Loonim.DrawInfo.Mode

The selected draw mode.

Mesh Loonim.DrawInfo.SharedQuad
staticprivate

The cached fullscreen quad. See Quad.

List<DrawStack> Loonim.DrawInfo.Stacks =new List<DrawStack>()

<summmary>The current set of stacks.

SurfaceTypeMode Loonim.DrawInfo.SurfaceType =SurfaceTypeMode.Albedo

The type of image to draw.

Property Documentation

bool Loonim.DrawInfo.IsSquare
get

True if this is drawing a square image.

int Loonim.DrawInfo.PixelCount
get

ImageX * ImageY.

Mesh Loonim.DrawInfo.Quad
staticget

A full screen quad. This is the most commonly used mesh type (it gets set to the DrawInfo.Mesh property by default).