Click here to Skip to main content
Click here to Skip to main content
Articles » Multimedia » DirectX » Games » Downloads
Add your own
alternative version

Game Engine

, 20 Nov 2009 CPL
A game engine first prototype
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MTV3D65;

namespace gefx
   public  class Fog
       public TVAtmosphere Atmos;
       public TV_COLOR Colors= new TV_COLOR(1,1,1,1);
       public bool Enabled;
       public float GustocaMagle = 0f;

       public Fog()
           Atmos = new TVAtmosphere();


       public void AddFog(TV_COLOR pColor,float Gustoca)
           Colors = pColor;
           Enabled = true;
           Atmos.Fog_SetColor(Colors.r, Colors.g, Colors.b);
           GustocaMagle = Gustoca;
           Atmos.Fog_SetParameters(0, 0, GustocaMagle);


       public void SetEnableDisable(bool  boolSet)


       public void SetFogpParametsers(float start, float End, float Dest)
           GustocaMagle = Dest;
           Atmos.Fog_SetParameters(0, 0, GustocaMagle);

       public void DrawFog()

           if (Enabled)





By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Common Public License Version 1.0 (CPL)


About the Author

Member 3873633
Software Developer
Croatia Croatia

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150414.1 | Last Updated 20 Nov 2009
Article Copyright 2009 by Member 3873633
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid