Last change
on this file since 4093 was
4093,
checked in by nico, 19 years ago
|
branches/heightMap: challenging the model class
|
File size:
598 bytes
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | #ifndef _HEIGHTMAP_H |
---|
4 | #define _HEIGHTMAP_H |
---|
5 | |
---|
6 | #include "model.h" |
---|
7 | #include <SDL_image.h> |
---|
8 | |
---|
9 | class Heightmap : public Model |
---|
10 | { |
---|
11 | |
---|
12 | public: |
---|
13 | Heightmap(const char* fileName, float scaling = 1.0, int displaylistResolution = 100, int vertexResolution = 1); |
---|
14 | |
---|
15 | virtual ~Heightmap(); |
---|
16 | |
---|
17 | private: |
---|
18 | bool Heightmap::import (const char* fileName, int displaylistResolution, int vertexResolution); |
---|
19 | void Heightmap::readIntoGroup(int left, int top,int width, int height, int vertexResolution); |
---|
20 | |
---|
21 | float Heightmap::getHeightAt(int x, int z); |
---|
22 | |
---|
23 | // holds the loaded pixels |
---|
24 | SDL_Surface* bitmap; |
---|
25 | }; |
---|
26 | |
---|
27 | #endif /* _HEIGHTMAP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.