Engine
The Game Engine for Ian Parberry's "Introduction to Game Physics with Box2D"
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
Engine
SpriteMan.h
Go to the documentation of this file.
1
2
3
4
#pragma once
5
6
#include "
defines.h
"
7
#include "
sprite.h
"
8
#include "tinyxml.h"
9
10
11
const
int
NUM_SPRITES
= 512;
12
14
15
class
CSpriteManager
{
16
private
:
17
C3DSprite
* m_pSprite[
NUM_SPRITES
];
18
char
m_pBuffer[MAX_PATH];
19
LPDIRECT3DDEVICE9 m_pd3dDevice;
20
BOOL LoadFile(
int
sprite,
const
char
* file);
21
public
:
22
CSpriteManager
();
23
~CSpriteManager
();
24
void
Load
(
int
sprite,
char
* name);
25
void
Draw
(
int
sprite, D3DXVECTOR3 p,
float
angle=0.0f,
float
xscale=1.0f,
float
yscale=1.0f);
26
void
Release
();
27
void
SetDevice
(LPDIRECT3DDEVICE9 device);
28
};
//CSpriteManager
Generated on Tue Nov 20 2012 10:24:36 for Engine by
1.8.2