Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

mapper.c File Reference

#include "analizer.c"

Include dependency graph for mapper.c:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

void init (void)
 Init standard value for most important rendering variable.

float getTop (GLfloat *rect, int width, int height)
 Return the top value of the cell.

float getBase (GLfloat *rect, int width, int height)
 Return the base value of the cell.

float readRectTop (int x, int y, int width, int height)
 Read from back buffer a cell and return its top.

float readRectBottom (int x, int y, int width, int height)
 Read from back buffer a cell and return its base.

GLfloat * readQuadTop ()
 Read an entire Quad and return an array that contain information of top of single cell.

GLfloat * readQuadBottom ()
 Read an entire Quad and return an array that contain information of base of single cell.

void quadric_callback (GLenum errorCode)
 Quadrick callback function.

void jailVolume (float x, float y, float z, float X, float Y, float Z)
 Set Model and Projection option for volume quad generation.

void initsize ()
 Inizialize Quad as world if user don't want to elaborate Working Unit.

void polygon (int a, int b, int c, int d, int g)
 Function for box face rendering.

void draw_object (int i)
 Function for rendering a world object.

void display (void)
 Display Callback function.

void elaborate (void)
 Idle Callback function.

void reshape (int w, int h)
 Reshape Callback.

void keyboard (unsigned char key, int x, int y)
 Keyboard Callback function.


Function Documentation

void display void   ) 
 

Display Callback function.

Set the viewport, clip and render current Quad selected.

Here is the call graph for this function:

void draw_object int  i  ) 
 

Function for rendering a world object.

Parameters:
i position in world array of object.

Here is the call graph for this function:

void elaborate void   ) 
 

Idle Callback function.

Render Quad and create and analize its cells If there is problem in rendering (for example resize from user) it rebuild Quad rendering and cell information.

Here is the call graph for this function:

float getBase GLfloat *  rect,
int  width,
int  height
 

Return the base value of the cell.

Parameters:
rect An array containing information of a cell of frame buffer.
width cell's width
height cell's height
Returns:
return the Bottom value of quad using current policy of analizing of quad. Note currently there is only one policy.

float getTop GLfloat *  rect,
int  width,
int  height
 

Return the top value of the cell.

Parameters:
rect An array containing information of a cell of frame buffer.
width cell's width
height cell's height
Returns:
return the Top value of cell using current policy of analizing of cells. Note currently there is only one policy.

void init void   ) 
 

Init standard value for most important rendering variable.

void initsize  ) 
 

Inizialize Quad as world if user don't want to elaborate Working Unit.

Here is the call graph for this function:

void jailVolume float  x,
float  y,
float  z,
float  X,
float  Y,
float  Z
 

Set Model and Projection option for volume quad generation.

Parameters:
x left top corner x value.
y left top corner y value.
z left top corner z value.
X rigth bottom corner x value.
Y rigth bottom corner y value.
Z rigth bottom corner z value.

void keyboard unsigned char  key,
int  x,
int  y
 

Keyboard Callback function.

If its press ESC program will be interrupted.

Parameters:
key key pressed.
x x coord.
y y coord

void polygon int  a,
int  b,
int  c,
int  d,
int  g
 

Function for box face rendering.

Parameters:
a first vertex in array of coordinate.
b second vertex in array of coordinate.
c third vertex in array of coordinate.
d fourth vertex in array of coordinate.
g position in world array of face's object.

Here is the call graph for this function:

void quadric_callback GLenum  errorCode  ) 
 

Quadrick callback function.

Not Used.

Parameters:
errorCode OpenGL error returned from OS

GLfloat* readQuadBottom  ) 
 

Read an entire Quad and return an array that contain information of base of single cell.

Returns:
An array containing information about Bottom of cells in the quad.

Here is the call graph for this function:

GLfloat* readQuadTop  ) 
 

Read an entire Quad and return an array that contain information of top of single cell.

Returns:
An array containing information about Top of cells in the quad.

Here is the call graph for this function:

float readRectBottom int  x,
int  y,
int  width,
int  height
 

Read from back buffer a cell and return its base.

Parameters:
x coordinate of left top corner of cell on window along x.
y coordinate of left top corner of cell on window along y.
width cell's width.
height cell's height.
Returns:
Base of cell.

Here is the call graph for this function:

float readRectTop int  x,
int  y,
int  width,
int  height
 

Read from back buffer a cell and return its top.

Parameters:
x coordinate of left top corner of cell on window along x.
y coordinate of left top corner of cell on window along y.
width cell's width.
height cell's height.
Returns:
Top of cell.

Here is the call graph for this function:

void reshape int  w,
int  h
 

Reshape Callback.

Try to handle user request to resize rendering windows. This may cause error in analizing quad's cell. Minimizing window is not permitted.

Parameters:
w new window's width.
h new window's heigth.


SourceForge.net Logo

Generated on Mon Jun 14 17:25:56 2004 for D.R.I.V.E. by doxygen 1.3.7