Main Page | Modules | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

Drawing system.
[C API]


Detailed Description

Drawing system.

dcplaya drawing system API provides functions for drawing text and geometrical primitives towards tile accelerator.

dcplaya drawing system provides functions for :

Author:
benjamin gerard


Files

file  draw.h
 drawing system


Modules

Boxes Primitives
 non textured boxes primitives

Clipping Primitives
 clipping primitives

Color Definition
 color definition

Graphic Context
 graphic context

Draw Primitives
 draw primitives

Tile Accelerator (TA)
 tile accelerator (TA) interface

Draw text
 draw text

Texture Manager
 texture manager

Viewport
 viewport


Data Structures

struct  gc_t
 Graphic context structure. More...


Drawing system initialization functions.

int draw_init (const float screen_width, const float screen_height)
 Initialize the drawing system.

void draw_shutdown (void)
 Shutdown the drawing system.


Drawing system globals.

float draw_screen_width
 Current drawing system screen width.

float draw_screen_height
 Current drawing system screen height.

viewport_t draw_viewport
 Current drawing system viewport.

matrix_t draw_projection
 Current drawing system projection.

float draw_znear
 Current draw projection Z near.

float draw_ooznear
 Current draw projection 1/Z near.


Function Documentation

int draw_init const float  screen_width,
const float  screen_height
 

Initialize the drawing system.

The draw_init() function initializes all drawing system components :

  • Set a default viewport on the screen box.
  • Set a default projection matrix with an open angle of 70 degree a zFar at 250 and retrieves zNear.
  • Initialize the rendering engine with the draw_init_render() function.
  • Initialize the texture manager with the texture_init() function.
  • Initialize the graphic context with the gc_init() function

Parameters:
screen_width Screen width in pixel.
screen_height Screen height in pixel.
Returns:
error-code
Return values:
0 Success
<0 Failure


dcplaya documentation version 1.2 Generated on January 2004 by doxygen 1.3.5