documentation:graphics
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:graphics [2011/06/06 16:57] – created mhgamework | documentation:graphics [2024/08/26 13:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Graphics ====== | ====== Graphics ====== | ||
+ | |||
===== Core ===== | ===== Core ===== | ||
+ | |||
==== XNAGame ==== | ==== XNAGame ==== | ||
+ | |||
This is the core implementation of IXNAGame. It provides the basic services for rendering with XNA/ | This is the core implementation of IXNAGame. It provides the basic services for rendering with XNA/ | ||
- | DrawFPS renders fps. This will be capped to 60 unless IsFixedTimestep is set to false. | + | |
- | Currently, vertical sync is disabled in XNAGame to enable a more interesting fps. | + | [[: |
==== LineManager3D ==== | ==== LineManager3D ==== | ||
- | This is used by the XNAGame to render lines, or boxes, triangles, … as lines. | + | |
- | You add the lines every frame; add the end of the frame all the lines are removed. | + | This is used by the XNAGame to render lines, or boxes, triangles, … as lines. You add the lines every frame; add the end of the frame all the lines are removed. |
===== Helper classes ===== | ===== Helper classes ===== | ||
Line 20: | Line 24: | ||
==== LineManager3DLines ==== | ==== LineManager3DLines ==== | ||
+ | |||
This class can be used to store lines for rendering with the LineManager3D. You can add lines to this object, and render them each frame without having to re-add them all like in the LineManager3D | This class can be used to store lines for rendering with the LineManager3D. You can add lines to this object, and render them each frame without having to re-add them all like in the LineManager3D | ||
+ | |||
==== AverageFPSCalculater ==== | ==== AverageFPSCalculater ==== | ||
+ | |||
This class simply calculates the average frame length from framelenghts passed to it. It then holds a property that contains the FPS | This class simply calculates the average frame length from framelenghts passed to it. It then holds a property that contains the FPS | ||
- | ==== ColladaShader ==== | + | |
+ | ==== ColladaShader | ||
This is a basic shader implementation for rendering textured/ | This is a basic shader implementation for rendering textured/ | ||
+ | |||
==== BasicShader ==== | ==== BasicShader ==== | ||
- | This is a basic shader class for a shader that holds a world/ | + | |
- | It provides functionality to compile a shader from an fx file. Note that this class does not hold an fx file, one must be provided. | + | This is a basic shader class for a shader that holds a world/ |
===== Meshes ===== | ===== Meshes ===== | ||
+ | |||
Note: Currently, these meshes have a reasonable common implementation. If more are added, inheritance or an adapter should be considered. | Note: Currently, these meshes have a reasonable common implementation. If more are added, inheritance or an adapter should be considered. | ||
- | ==== BoxMesh ==== | ||
- | This is a helper class for simply rendering a box with given bounds and worldmatrix. | + | ==== BoxMesh (obsolete?) ==== |
- | This class uses the ColladaShader for rendering. Supports raytracing | + | |
+ | |||
+ | This is a helper class for simply rendering a box with given bounds and worldmatrix. | ||
- | ==== SphereMesh ==== | ||
- | This is a helper class for simply rendering a sphere with given radius and worldmatrix. | + | ==== SphereMesh (obsolete?) ==== |
- | TODO: implement raytracing functionality | + | |
+ | This is a helper class for simply rendering a sphere with given radius and worldmatrix. TODO: implement raytracing functionality | ||
documentation/graphics.1307379453.txt.gz · Last modified: 2024/08/26 13:57 (external edit)