![]() ![]() Title = new Surface(titlescreen, description, display) Associate the front buffer to back buffer with specified caps A Caps is a set of attributes used by most of DirectX components Create the Surface with specifed description and device)ĭescription.Width = ĭescription.Height = ĭ = true īack = new Surface(description, display) Define the attributes for the front Surfaceĭ = true įront = new Surface(description, display) Set the resolution and color depth // used in full screen(640x480, 16 bit color)ĭisplay.SetDisplayMode( 640, 480, 16, 0, false) Set the Cooperative Level and parent, // Setted to Full Screen Exclusive to the form)ĬooperativeLevelFlags.FullscreenExclusive) SurfaceDescription description = new SurfaceDescription() ĭisplay.SetCooperativeLevel( this, CooperativeLevelFlags.Normal) The Title Screen Adding DirectX namespaces to the projectĪdd the references to and to your project and add these namespaces to the project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |