Google
Web alhem.net
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

AnimateThread Class Reference

#include <AnimateThread.h>

List of all members.

Public Member Functions

 AnimateThread ()
 ~AnimateThread ()
void Run ()


Constructor & Destructor Documentation

AnimateThread::AnimateThread  ) 
 

File ......... AnimateThread.cpp Published .... 2005-02-07 Author ....... grymse@alhem.net

Definition at line 30 of file AnimateThread.cpp.

References DEB.

00030 : Thread(false) 00031 //,m_sdl(sdl) 00032 //,m_fCourier8("COURI.TTF",8) 00033 { 00034 DEB(printf("AnimateThread()\n");) 00035 }

AnimateThread::~AnimateThread  ) 
 

Definition at line 38 of file AnimateThread.cpp.

References DEB.

00039 { 00040 DEB(printf("~AnimateThread()\n");) 00041 }


Member Function Documentation

void AnimateThread::Run  ) 
 

Definition at line 78 of file AnimateThread.cpp.

00079 { 00080 /* 00081 sge_tt_textoutf(m_sdl->GetScreen(), m_fCourier8.GetFont(), 00082 100,100, 00083 255,128,128, 00084 0,0,0, 00085 SDL_ALPHA_OPAQUE, 00086 "Hello World?"); 00087 */ 00088 while (IsRunning()) 00089 { 00090 SDL_Delay(1000); 00091 #ifndef WIN32 00092 SDL_Event e; 00093 e.type = SDL_USEREVENT; 00094 e.user.code = SDL_USEREVENT_TIMER; 00095 e.user.data1 = NULL; 00096 e.user.data2 = NULL; 00097 // SDL_PushEvent(&e); 00098 #endif 00099 // DEB(printf("SDL ticks: %d\n",SDL_GetTicks() );) 00100 // SetRunning(false); 00101 // m_sdl -> DrawBox(320, 240); 00102 } // while (IsRunning()) 00103 00104 SetRunning(false); //m_running = 0; // if break 00105 }


The documentation for this class was generated from the following files:
Generated for SDL C++ GUI by doxygen 1.3.6