blaze
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Immediate drawing

Immediate drawing. More...

Functions

BLZAPIENTRY int BLZAPICALL BLZ_DrawImmediate (struct BLZ_Texture *texture, struct BLZ_Vector2 position, struct BLZ_Rectangle *srcRectangle, float rotation, struct BLZ_Vector2 *origin, struct BLZ_Vector2 *scale, struct BLZ_Vector4 color, enum BLZ_SpriteFlip effects)
 Immediately draws a sprite using the specified parameters to screen. More...
 
BLZAPIENTRY int BLZAPICALL BLZ_LowerDrawImmediate (GLuint texture, struct BLZ_SpriteQuad *quad)
 Lower level immediate drawing function, called by BLZ_DrawImmediate. More...
 

Detailed Description

Immediate drawing.

Function Documentation

BLZAPIENTRY int BLZAPICALL BLZ_DrawImmediate ( struct BLZ_Texture texture,
struct BLZ_Vector2  position,
struct BLZ_Rectangle srcRectangle,
float  rotation,
struct BLZ_Vector2 origin,
struct BLZ_Vector2 scale,
struct BLZ_Vector4  color,
enum BLZ_SpriteFlip  effects 
)

Immediately draws a sprite using the specified parameters to screen.

Parameters
textureThe texture to draw
positionPosition of the sprite (top-left corner if origin is NULL)
srcRectanglePart of the source texture to draw defined in pixels, or NULL if the whole texture should be drawn
rotationRotation of the sprite in clockwise direction in radians
originThe point around which the sprite should be positioned and rotated, if NULL, top-left corner (0, 0) will be used
scaleScale in X and Y directions, if NULL, defaults to (1,1)
colorColor to apply to the sprite (color gets multiplied if default shader is used)
effectsDefines if the sprite should be flipped in any direction
See also
BLZ_LowerDrawImmediate
BLZAPIENTRY int BLZAPICALL BLZ_LowerDrawImmediate ( GLuint  texture,
struct BLZ_SpriteQuad quad 
)

Lower level immediate drawing function, called by BLZ_DrawImmediate.

Use it if you have a predefined quad to draw (like a fullscreen one for post-processing effects, for example).

See also
BLZ_DrawImmediate