Week10 [30/11] - [06/12]
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
This commit is contained in:
6
Light.h
6
Light.h
@ -26,6 +26,10 @@ public:
|
||||
int GetGreenLightIntensity() const;
|
||||
int GetBlueLightIntensity() const;
|
||||
|
||||
bool GetLightActive() const;
|
||||
void SetLightActive(bool active);
|
||||
void ToggleLightActive();
|
||||
|
||||
virtual COLORREF CalculateLight(const Model& currentModel, const Polygon3D& currentPolygon, COLORREF colorIn) = 0;
|
||||
virtual COLORREF CalculateLight(const Model& currentModel, const Vertex& currentVertex, COLORREF colorIn) = 0;
|
||||
|
||||
@ -36,6 +40,8 @@ protected:
|
||||
int _liGreen;
|
||||
int _liBlue;
|
||||
|
||||
bool _active;
|
||||
|
||||
void Copy(const Light& other);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user