Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::av::Video Class Reference

#include <Video.h>

Inheritance diagram for kge::av::Video:
kge::Resource kge::KgeUnknown

Public Member Functions

 Video (Device *pDev, const u32 Handle, char *FileName, char *Name)
 Constructor.
 ~Video ()
 Destructor.
bool LoadMovie (char *FileName)
 Loads the movie from file.
bool NextMovieFrame ()
int GetMovieWidth ()
int GetMovieHeight ()
void DrawMovie ()
 Render the movie to texture.
void Lock ()
void Unlock ()
- Public Member Functions inherited from kge::Resource
 Resource (const u32 Handle, const char *FileName, const char *Name, void *ExtraParam)
 Constructor.
virtual ~Resource ()
 Destructor.
virtual const char * GetFileName ()
 Return resource file name.
virtual const char * GetName ()
 Return resource name.
virtual u32 GetHandle ()
 Return resource handle.
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Public Attributes

DDSURFACEDESC ddsd

Protected Attributes

IAMMultiMediaStream * m_pAMStream
IMediaStream * m_pPrimaryVidStream
IDirectDrawMediaStream * m_pDDStream
IDirectDrawStreamSample * m_pSample
IDirectDrawSurface * m_pSurface
RECT m_Movie_rect
LONG m_MoviePitch
void * m_MovieBuffer
DWORD m_Time
DWORD m_Oldtick
BOOL m_Flag
- Protected Attributes inherited from kge::Resource
char * m_pFileName
char * m_pName
void * m_pExtraParam
u32 m_iHandle
void * m_pMyMgr
 Resource manager pointer.

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Detailed Description

Definition at line 19 of file Video.h.

Constructor & Destructor Documentation

kge::av::Video::Video ( Device pDev,
const u32  Handle,
char *  FileName,
char *  Name 
)

Constructor.

kge::av::Video::~Video ( )

Destructor.

Member Function Documentation

void kge::av::Video::DrawMovie ( )

Render the movie to texture.

int kge::av::Video::GetMovieHeight ( )
inline

Definition at line 39 of file Video.h.

int kge::av::Video::GetMovieWidth ( )
inline

Definition at line 37 of file Video.h.

bool kge::av::Video::LoadMovie ( char *  FileName)

Loads the movie from file.

void kge::av::Video::Lock ( )
bool kge::av::Video::NextMovieFrame ( )

Call this function to prepare next frame

Returns
Returns false if the next frame time has not come yet.
void kge::av::Video::Unlock ( )

Member Data Documentation

DDSURFACEDESC kge::av::Video::ddsd

Definition at line 44 of file Video.h.

BOOL kge::av::Video::m_Flag
protected

Definition at line 61 of file Video.h.

RECT kge::av::Video::m_Movie_rect
protected

Definition at line 56 of file Video.h.

void* kge::av::Video::m_MovieBuffer
protected

Definition at line 58 of file Video.h.

LONG kge::av::Video::m_MoviePitch
protected

Definition at line 57 of file Video.h.

DWORD kge::av::Video::m_Oldtick
protected

Definition at line 60 of file Video.h.

IAMMultiMediaStream* kge::av::Video::m_pAMStream
protected

Definition at line 51 of file Video.h.

IDirectDrawMediaStream* kge::av::Video::m_pDDStream
protected

Definition at line 53 of file Video.h.

IMediaStream* kge::av::Video::m_pPrimaryVidStream
protected

Definition at line 52 of file Video.h.

IDirectDrawStreamSample* kge::av::Video::m_pSample
protected

Definition at line 54 of file Video.h.

IDirectDrawSurface* kge::av::Video::m_pSurface
protected

Definition at line 55 of file Video.h.

DWORD kge::av::Video::m_Time
protected

Definition at line 59 of file Video.h.


The documentation for this class was generated from the following file: