iCub-main
Classes | Macros | Typedefs | Functions | Variables
rendering.h File Reference

Header file for the rendering. More...

#include "SDL.h"
#include "SDL_opengl.h"
#include <ode/ode.h>
#include "VideoTexture.h"
#include <yarp/os/ResourceFinder.h>
#include "xloader.h"
#include <iostream>
#include <stdio.h>
+ Include dependency graph for rendering.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SIMBITMAPINFOHEADER
 
struct  vector_s
 
struct  vertex_s
 

Macros

#define FLOOR   0
 

Typedefs

typedef struct vector_s vector_t
 
typedef struct vertex_s vertex_t
 

Functions

void setupTexture (char *filename, int whichtexture)
 
bool setup_opengl (yarp::os::ResourceFinder &finder)
 
void DrawVideo (VideoTexture *video)
 
void DrawGround (bool wireframe)
 
void DrawBox (float length, float height, float width, bool wireframe, bool texture, int whichtexture)
 
void DrawSphere (float radius, bool wireframe, bool texture, int whichtexture)
 
void DrawCylinder (float radius, float length, bool wireframe, bool texture, int whichtexture)
 
void LDEsetM (const dReal *pos, const dReal *R)
 
GLuint LoadTextureRAW (const char *filename, int wrap)
 
void drawSkyDome (float x, float y, float z, float width, float height, float length)
 
void DrawX (dTriMeshX trimesh, int whichtexture)
 
int LoadBitmapTERMINAL (char *filename, int whichtexture)
 

Variables

unsigned int Texture [200]
 

Detailed Description

Header file for the rendering.

Author
Vadim Tikhanoff
Date
2008
Note
Released under GNU GPL v2.0

Definition in file rendering.h.

Macro Definition Documentation

◆ FLOOR

#define FLOOR   0

Definition at line 42 of file rendering.h.

Typedef Documentation

◆ vector_t

typedef struct vector_s vector_t

◆ vertex_t

typedef struct vertex_s vertex_t

Function Documentation

◆ DrawBox()

void DrawBox ( float  length,
float  height,
float  width,
bool  wireframe,
bool  texture,
int  whichtexture 
)

Definition at line 227 of file rendering.cpp.

◆ DrawCylinder()

void DrawCylinder ( float  radius,
float  length,
bool  wireframe,
bool  texture,
int  whichtexture 
)

Definition at line 354 of file rendering.cpp.

◆ DrawGround()

void DrawGround ( bool  wireframe)

Definition at line 123 of file rendering.cpp.

◆ drawSkyDome()

void drawSkyDome ( float  x,
float  y,
float  z,
float  width,
float  height,
float  length 
)

Definition at line 160 of file rendering.cpp.

◆ DrawSphere()

void DrawSphere ( float  radius,
bool  wireframe,
bool  texture,
int  whichtexture 
)

Definition at line 330 of file rendering.cpp.

◆ DrawVideo()

void DrawVideo ( VideoTexture video)

Definition at line 457 of file rendering.cpp.

◆ DrawX()

void DrawX ( dTriMeshX  trimesh,
int  whichtexture 
)

Definition at line 462 of file rendering.cpp.

◆ LDEsetM()

void LDEsetM ( const dReal *  pos,
const dReal *  R 
)

Definition at line 401 of file rendering.cpp.

◆ LoadBitmapTERMINAL()

int LoadBitmapTERMINAL ( char *  filename,
int  whichtexture 
)

Definition at line 510 of file rendering.cpp.

◆ LoadTextureRAW()

GLuint LoadTextureRAW ( const char *  filename,
int  wrap 
)

Definition at line 422 of file rendering.cpp.

◆ setup_opengl()

bool setup_opengl ( yarp::os::ResourceFinder &  finder)

Some OpenGL settings

Definition at line 65 of file rendering.cpp.

◆ setupTexture()

void setupTexture ( char *  filename,
int  whichtexture 
)

Definition at line 505 of file rendering.cpp.

Variable Documentation

◆ Texture

unsigned int Texture[200]

Definition at line 54 of file rendering.cpp.