My Project
TextureFactory.h
1 #pragma once
2 namespace ParaTerrain
3 {
4  class TextureCell;
5  class Terrain;
6  class Texture;
7 
26  {
27  public:
49  virtual Texture * GetTexture(int index, float originX, float originY, float width, float height) = 0;
52  virtual void GenerateTextureCell(Terrain * pTerrain, TextureCell * pCell, float originX, float originY, float width, float height);
54 
59  virtual void UnloadTexture(int index) = 0;
60  };
61 }
Definition: SceneObject.h:15
Definition: mdx.h:48
virtual void GenerateTextureCell(Terrain *pTerrain, TextureCell *pCell, float originX, float originY, float width, float height)
This method is now obsolete and should not be used.
Definition: TextureFactory.cpp:17
An abstract factory for managing terrain textures.
Definition: TextureFactory.h:25
Represents a square region on a Terrain surface that is textured.
Definition: TextureCell.h:26
virtual Texture * GetTexture(int index, float originX, float originY, float width, float height)=0
Queries your factory for a texture.
virtual void UnloadTexture(int index)=0
Notifies your factory that a particular texture is no longer visible.
This class represents a single, contiguous chunk of terrain and is the primary public interface to De...
Definition: Terrain.h:386