O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic 3D Graphics Commands

That was quite a fast-paced first half of the chapter, wouldn’t you agree? It has been fun to learn all about wireframe and solid objects and how DB creates objects and draws them. Now I would like to up the ante, so to speak, and give you more 3D graphics programming power by talking about some of the more powerful commands in DB.

Creating Stock Objects

You have already seen some of the stock objects in DB, such as the triangle, plane, and cube. Now I would like to cover all of the stock objects and then provide you with a demonstration program to show you how to use these objects.

Making a Triangle

I’ll start with the easiest object, just for reference. This command is used to create a simple triangle in whatever ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required