#include <PainterPixelShader.h>
Inheritance diagram for PainterPixelShader:
Public Methods | |
PainterPixelShader (const CGprofile &cgProfile, const CGprogram &cgProgram) | |
Initialize the object with the given Cg objects. | |
virtual void | paintMesh (const Mesh &mesh, const Vector &eye, const Vector &light) const |
Draw the Mesh using pixel shaders. | |
virtual void | paintTriangle (const Triangle &triangle, const Vector &eye, const Vector &light) const |
Draw the Triangle using pixel shaders. | |
Private Attributes | |
const CGprofile & | m_CgProfile |
const CGprogram & | m_CgProgram |
The drawing process uses the pixel shader facilities of the card in order to render the detail and bumpmap layers.
|
Draw the Mesh using pixel shaders. This method uses the pixel shader facilities of the card:
Reimplemented from Painter. |
|
Draw the Triangle using pixel shaders. This method uses the pixel shader facilities of the card:
The pixel shader program uses these parameters and the global state setup in paintMesh to render the Triangle. Reimplemented from Painter. |
|
The CgProfile in which the m_CgProgram will execute. |
|
The CgProgram which renders the fragments. |