trackball_sdl.cpp File Reference

#include <SDL/SDL.h>
#include <gl/glew.h>
#include <vector>
#include <vcg/simplex/vertex/base.h>
#include <vcg/simplex/face/base.h>
#include <vcg/complex/trimesh/base.h>
#include <vcg/complex/trimesh/update/bounding.h>
#include <vcg/complex/trimesh/update/normal.h>
#include <wrap/io_trimesh/import.h>
#include <wrap/gl/trimesh.h>
#include <queue>
#include "deprecated_space.h"
#include <wrap/gl/math.h>
#include <vcg/space/color4.h>
#include <wrap/gui/trackball.h>
Include dependency graph for trackball_sdl.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CFace
class  CMesh
class  CVertex
 compositing wanted proprieties More...

Defines

#define SDL_TIMER   SDL_USEREVENT

Functions

void display ()
void drainRedrawEvents ()
void initGL ()
bool initSDL (const std::string &str)
int main (int argc, char *argv[])
void myReshapeFunc (GLsizei w, GLsizei h)
bool onTimer ()
void RenderFloor ()
vcg::Trackball::Button SDL2VCG (int code)
int sdlLoop ()
void sendRedraw ()
void SetTrackball (int mode)
Uint32 timerCallback (Uint32 interval, void *param)

Variables

int drawMode = 2
const int FPS = 30
vcg::GlTrimesh< CMeshglWrap
int height = 600
CMesh mesh
vcg::Point3f objectPos (0, 0, 0)
vcg::Point3f observerPos (0, 0.2, 3)
vcg::Trackball track
int trackballMode = 1
int width = 800

Define Documentation

#define SDL_TIMER   SDL_USEREVENT

Definition at line 51 of file trackball_sdl.cpp.


Function Documentation

void display (  ) 

Definition at line 196 of file trackball_sdl.cpp.

void drainRedrawEvents (  ) 

Definition at line 190 of file trackball_sdl.cpp.

void initGL (  ) 

Definition at line 151 of file trackball_sdl.cpp.

bool initSDL ( const std::string &  str  ) 

Definition at line 272 of file trackball_sdl.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 352 of file trackball_sdl.cpp.

void myReshapeFunc ( GLsizei  w,
GLsizei  h 
)

Definition at line 165 of file trackball_sdl.cpp.

bool onTimer (  ) 

Definition at line 232 of file trackball_sdl.cpp.

void RenderFloor (  ) 

Definition at line 84 of file trackball_sdl.cpp.

vcg::Trackball::Button SDL2VCG ( int  code  ) 

Definition at line 244 of file trackball_sdl.cpp.

int sdlLoop (  ) 

Definition at line 291 of file trackball_sdl.cpp.

void sendRedraw (  ) 

Definition at line 183 of file trackball_sdl.cpp.

void SetTrackball ( int  mode  ) 

Definition at line 104 of file trackball_sdl.cpp.

Uint32 timerCallback ( Uint32  interval,
void *  param 
)

Definition at line 175 of file trackball_sdl.cpp.


Variable Documentation

int drawMode = 2

Definition at line 75 of file trackball_sdl.cpp.

const int FPS = 30

Definition at line 54 of file trackball_sdl.cpp.

Definition at line 71 of file trackball_sdl.cpp.

int height = 600

Definition at line 78 of file trackball_sdl.cpp.

Definition at line 70 of file trackball_sdl.cpp.

Definition at line 72 of file trackball_sdl.cpp.

int trackballMode = 1

Definition at line 76 of file trackball_sdl.cpp.

int width = 800

Definition at line 77 of file trackball_sdl.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:20:55 2013