
Added active Variable to the Lights Classes Added updated MD2Loader Class Added Model Filename and Texture File Name to the Model Class Added Active Flag to the Model Class Added DrawMode to the Model Class Added Texture and UV Variables to the Model Class Added UV Coordinates to the Polygon3D Class Added DrawString method to the Rasterizer to write text to the screen space Added Interpolate and Lerp Methods to the Rasterizer Added Select statement for drawing a current models draw mode Added DrawTextured Method to the Rasterizer Class Added UVCoord Class Added Texture Class Added = operator to the Vector3D Class Added UVCoord to the Vertex Class Moved Models and Texture Files into a subfolder Fixed issue with textures not loading properly because of the vector address problem
27 lines
336 B
C++
27 lines
336 B
C++
#pragma once
|
|
|
|
class UVCoord
|
|
{
|
|
public:
|
|
UVCoord();
|
|
UVCoord(float u, float v);
|
|
UVCoord(const UVCoord& other);
|
|
|
|
~UVCoord();
|
|
|
|
float GetU() const;
|
|
void SetU(const float u);
|
|
float GetV() const;
|
|
void SetV(const float v);
|
|
|
|
UVCoord& operator= (const UVCoord& rhs);
|
|
|
|
private:
|
|
float _u;
|
|
float _v;
|
|
|
|
void Copy(const UVCoord& other);
|
|
|
|
};
|
|
|