PixelLightAPI  .
Public Member Functions | Protected Member Functions
PLRenderer::ProgramAttribute Class Reference

Abstract renderer program attribute (also known as "varying parameter") More...

#include <ProgramAttribute.h>

List of all members.

Public Member Functions

virtual bool Set (PLRenderer::VertexBuffer *pVertexBuffer, PLCore::uint32 nIndex)=0
 Sets a attribute by using an index to reference the vertex buffer attribute to use.
virtual bool Set (PLRenderer::VertexBuffer *pVertexBuffer, PLRenderer::VertexBuffer::ESemantic nSemantic, PLCore::uint32 nChannel=0)=0
 Sets a attribute by using a semantic to reference the vertex buffer attribute to use.

Protected Member Functions

PLRENDERER_API ProgramAttribute ()
 Constructor.
virtual PLRENDERER_API ~ProgramAttribute ()
 Destructor.

Detailed Description

Abstract renderer program attribute (also known as "varying parameter")

Note:
  • For per-vertex data
  • It doesn't matter whether or not the program, the attribute is part of, is currently used for rendering

Constructor & Destructor Documentation

PLRENDERER_API PLRenderer::ProgramAttribute::ProgramAttribute ( ) [protected]

Constructor.

virtual PLRENDERER_API PLRenderer::ProgramAttribute::~ProgramAttribute ( ) [protected, virtual]

Destructor.


Member Function Documentation

virtual bool PLRenderer::ProgramAttribute::Set ( PLRenderer::VertexBuffer pVertexBuffer,
PLCore::uint32  nIndex 
) [pure virtual]

Sets a attribute by using an index to reference the vertex buffer attribute to use.

Parameters:
[in]pVertexBufferVertex buffer to use, can be a null pointer
[in]nIndexIndex of the vertex buffer attribute to connect with the vertex shader attribute
Returns:
'true' if all went fine, else 'false'
virtual bool PLRenderer::ProgramAttribute::Set ( PLRenderer::VertexBuffer pVertexBuffer,
PLRenderer::VertexBuffer::ESemantic  nSemantic,
PLCore::uint32  nChannel = 0 
) [pure virtual]

Sets a attribute by using a semantic to reference the vertex buffer attribute to use.

Parameters:
[in]pVertexBufferVertex buffer to use, can be a null pointer
[in]nSemanticSemantic of the vertex buffer attribute to connect with the vertex shader attribute
[in]nChannelPipeline channel (see ESemantic, maximum see MaxPipelineChannels)
Returns:
'true' if all went fine, else 'false'

The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:39
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported