User Submitted Code Samples - Page 2

Fonts (DirectX 9.0 - VB .NET)
 

Author: RobyDX

Demonstrates how to use Direct3D Font objects to render text to the screen.

Relevant VB .NET Keywords: Font, FontStyle.Italic, FontStyle.Underline, FontStyle.Bold, DrawText, DrawTextFormat.Left, and Rectangle.

 

Alpha Blending (DirectX 9.0 - VB .NET)
 

Author: RobyDX

Demonstrates how to render semi-transparent objects by alpha-blending them in the frame buffer.

Relevant Keywords: RenderState.AlphaBlendEnable, RenderState.SourceBlend, RenderState.DestinationBlend, RenderState.BlendOperation, Zero, One, InvBlendFactor, BlendFactor, BothInvSourceAlpha, BothSourceAlpha, SourceAlphaSat, InvDestinationColor, DestinationColor, InvDestinationAlpha, DestinationAlpha, InvSourceAlpha, SourceAlpha, InvSourceColor, SourceColor, Add, Max, Min, RevSubtract, and Subtract.

 

Predefined Meshes (DirectX 9.0 - VB .NET)
 

Author: RobyDX

Demonstrates how to use the predefined utility meshes defined by Direct3D's Mesh interface.

Relevant Keywords: Mesh.TextFromFont, Mesh.Box, Mesh.Cylinder, Mesh.Sphere, Mesh.Teapot, Mesh.Torus, and DrawSubset.

 

Sprites (DirectX 9.0 - VB .NET)
 

Author: RobyDX

Demonstrates how mix 3D and 2D graphics together using Dirct3D's Sprite object.

Relevant Keywords: Sprite, Draw, Rectangle, Begin, End, and SpriteFlags.AlphaBlend.

 

Particles (DirectX 9.0 - VB .NET)
 

Author: RobyDX

Demonstrates how to create a simple particle system effect using Direct3D.

Relevant Keywords: PointSpriteEnable, PointScaleEnable, PointSize, PointSizeMin, PointScaleA, PointScaleB, PointScaleC, AlphaBlendEnable, SourceBlend, Blend.SourceAlpha, DestinationBlend, Blend.DestinationAlpha, and DrawUserPrimitives.