home | login | register | DMCA | contacts | help | donate |      

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Э Ю Я


my bookshelf | genres | recommend | rating of books | rating of authors | reviews | new | форум | collections | читалки | авторам | add
fantasy
space fantasy
fantasy is horrors
heroic
prose
  military
  child
  russian
detective
  action
  child
  ironical
  historical
  political
western
adventure
adventure (child)
child's stories
love
religion
antique
Scientific literature
biography
business
home pets
animals
art
history
computers
linguistics
mathematics
religion
home_garden
sport
technique
publicism
philosophy
chemistry
close

Loading...


Introduction

In this tutorial we will convert our single file into two classes: CGame and CCuboid. CGame will contain the main code such as initialisation, the game loop and rendering. CCuboid will be used to create cuboid objects, you can specify position and size. CCuboid also has a Render function that should be called in the CGame render function. I have not made any major changes to the code from the last tutorial, so you should find it pretty easy to understand. We will change our program to be full screen rather than windowed and we'll take a look at depth buffers. From now on, I will not show all of the program code in the tutorial as I have done so far (they're getting to long). Instead, I'll only show you the snippets of code that are new or have been modified. You can download the full source code by clicking the "Download Source" link above.


Summary | DirectX 8 Programming Tutorial | Depth Buffers







Loading...