#include <AVI.h>
Public Member Functions | |
AVI () | |
virtual | ~AVI () |
void | unload () |
bool | load (LPCSTR filename) |
bool | isDone () |
void | update (DWORD milliseconds) |
void | setFrame (int frame) |
void | setSpeed (float playSpeed) |
void | setState (int state) |
GLuint | genTex (int w=256, int h=256) |
void | sethDC (HDC hDC) |
Private Attributes | |
GLuint | texture |
int | curFrame |
AVISTREAMINFO | psi |
PAVISTREAM | pavi |
PGETFRAME | pgf |
BITMAPINFOHEADER | bmih |
int | lastframe |
UINT | width |
UINT | height |
char * | pdata |
int | millisPerFrame |
int | elapsedTime |
HDRAWDIB | hdd |
HBITMAP | hBitmap |
HDC | hdc |
unsigned char * | data |
bool | play |
bool | looping |
bool | direction |
bool | done |
float | scale |
Definition at line 8 of file AVI.h.
|
Definition at line 3 of file AVI.cpp. References curFrame, data, direction, elapsedTime, hdc, hdd, looping, play, scale, and texture. |
|
|
|
Definition at line 163 of file AVI.cpp. References curFrame, data, hdc, hdd, height, lastframe, pdata, pgf, texture, and width. Referenced by Demo::drawFrame(). |
|
Definition at line 14 of file AVI.h. References done. Referenced by Demo::update(). |
|
curFrame = 0; hdc = CreateCompatibleDC(0); hdd = DrawDibOpen(); data = 0; elapsedTime = 0; glGenTextures(1, &texture); scale = 1; play = true; looping = false; direction = true; glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexImage2D(GL_TEXTURE_2D,0,GL_RGB,256,256,0,GL_RGB,GL_UNSIGNED_BYTE,data); gluBuild2DMipmaps(GL_TEXTURE_2D, 3, 256, 256, 0, GL_UNSIGNED_BYTE, data); Definition at line 32 of file AVI.cpp. References bmih, data, done, hBitmap, hdc, height, lastframe, LOG_ERROR, millisPerFrame, pavi, pgf, psi, and width. Referenced by Demo::load(). |
|
Definition at line 110 of file AVI.cpp. References curFrame, elapsedTime, and millisPerFrame. |
|
Definition at line 21 of file AVI.h. Referenced by Demo::load(). |
|
Definition at line 17 of file AVI.h. References scale. |
|
if(State == AVI_START) SetFrame(0); if(State == AVI_STOP) Play = false; if(State == AVI_CONTINUE) Play = true; if(State == AVI_LOOP) looping = true; if(State == AVI_NO_LOOP) looping = false; if(State == AVI_FOREWARD) Direction = true; if(State == AVI_REVERSE) Direction = false; |
|
Definition at line 24 of file AVI.cpp. References hBitmap, hdd, pavi, and pgf. Referenced by Demo::unload(). |
|
Definition at line 117 of file AVI.cpp. References curFrame, direction, done, elapsedTime, int(), lastframe, looping, millisPerFrame, play, and scale. Referenced by Demo::update(). Here is the call graph for this function: |
|
Definition at line 30 of file AVI.h. Referenced by load(). |
|
Definition at line 26 of file AVI.h. Referenced by AVI(), genTex(), setFrame(), and update(). |
|
|
|
|
|
|
|
Definition at line 38 of file AVI.h. Referenced by AVI(), setFrame(), and update(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 37 of file AVI.h. Referenced by load(), setFrame(), and update(). |
|
|
|
Definition at line 35 of file AVI.h. Referenced by genTex(). |
|
|
|
|
|
Definition at line 27 of file AVI.h. Referenced by load(). |
|
Definition at line 52 of file AVI.h. Referenced by AVI(), setSpeed(), and update(). |
|
|
|
|