When designing computer games, it is only fitting to allow the user as much freedom as possible towards customising things like graphics, audio, game-play, and controls settings. Following the steps provided below, you will learn how to toggle your Truevision 3D game between full-screen and windowed mode, as well as control the resolution, color depth and more.
Step One - Full-screen Mode
To place the Truevision 3D engine into full-screen mode, call the 'Init3DFullscreen()' method found in the TVEngine object. 'Init3DFullscreen()' contains several overload that allow you to modify settings such as width, height, bpp, vertical sync, tl, etc. If you would like to simply turn on full-screen mode with a specific resolution, just call the 'Init3DFullscreen()' method and supply the width and the height of the desired resolution as the first and second parameters like so,
// Initialize in Fullscreen mode with resolution 1024 x 768
TV.Init3DFullscreen(1024, 768);
After adding the example code to your project, run the game and the screen will change its resolution to 1024 x 768 and the game will be in full-screen mode.
Step Two - Windowed Mode
Allowing the user to enter into full-screen in common in ninety percent of video games. However, only some games will give the user the ability to run the game in windowed mode. Truevision 3D, as with the full-screen function, comes with a nice and clean method that, when called, will change your application into windowed mode. This function is called, 'Init3DWindowed()'. 'Init3DWindowed()' comes with two simple overloads. The first overload simply set the windowed mode to the given handle. The second does the same as the first, but also allows the toggling of tl with the second parameter. Here is an example of initialize the engine in plain windowed mode,
// Initialize Truevision 3D in windowed mode
TV.Init3DWindowed(this.Handle);
This example code will put the Truevision 3D engine in windowed mode, rendering to the given handle, in this case, the main form's handle.
Published by James Cloud
I like to program and do basically anything that has to do with technology and computers. View profile
- The NHL's New Rules and Their Effect on the GameThe NHL's new rules were all about harnessing the skill that players in the NHL possess. This skill includes the speed of the game, the pinpoint shots, and the wide open hockey that the NHL should be.
How to Run the Three-card Monte HustleIn this short vignette, readers learn secrets about the three-card Monte that are known only to master hustlers.- Playing the Game Called the Game: A Mind GameHow to play The Game, from whence The Game has come, strategies for The Game, variations on The Game, and playing The Game in competition.
- 10 Ways to Stay Interested when the Game Goes into OvertimeThere are so many interesting things about the game, besides the actual game being played.
- My Son was the Hero of the GameA eleven year old boy is all arms and legs. Coordination is not their strong suit. This was true in my son's case. He sat on the bench, and was put in the game only if the score for our side was huge, until the day he...
- CSharp .Net Tutorial: Loading Textures in Truevision 3D
- Csharp.net Tutorial: Drawing Particles with Truevision 3D
- Csharp.Net Tutorial: Drawing Sprites with Truevision 3D
- CSharp .Net Tutorial: Reading Mouse Input in Truevision 3D
- CSharp .Net Tutorial: Glow in Truevision 3D
- Csharp.Net Tutorial: Basic Ray Collision Detection with Truevision 3D
- HP Pavilion 17.3" 1TB Laptop Reviews, Model: DV7-4080US



