VertexProgram File Reference
`#include <osg/StateAttribute>`
`#include <osg/Vec4>`
`#include <osg/Matrix>`
`#include <osg/buffered_value>`
`#include <map>`
`#include <string>`

Go to the source code of this file.

## Classes

class | osg::VertexProgram

## Namespaces

namespace | osg

## Macros

#define | OSG_VERTEXPROGRAM 1
#define | GL_VERTEX_PROGRAM_ARB 0x8620
#define | GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
#define | GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
#define | GL_COLOR_SUM_ARB 0x8458
#define | GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
#define | GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
#define | GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
#define | GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
#define | GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
#define | GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
#define | GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
#define | GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
#define | GL_PROGRAM_LENGTH_ARB 0x8627
#define | GL_PROGRAM_FORMAT_ARB 0x8876
#define | GL_PROGRAM_BINDING_ARB 0x8677
#define | GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
#define | GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
#define | GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
#define | GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
#define | GL_PROGRAM_TEMPORARIES_ARB 0x88A4
#define | GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
#define | GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
#define | GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
#define | GL_PROGRAM_PARAMETERS_ARB 0x88A8
#define | GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
#define | GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
#define | GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
#define | GL_PROGRAM_ATTRIBS_ARB 0x88AC
#define | GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
#define | GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
#define | GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
#define | GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0
#define | GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
#define | GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
#define | GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
#define | GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
#define | GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
#define | GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
#define | GL_PROGRAM_STRING_ARB 0x8628
#define | GL_PROGRAM_ERROR_POSITION_ARB 0x864B
#define | GL_CURRENT_MATRIX_ARB 0x8641
#define | GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
#define | GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
#define | GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
#define | GL_MAX_PROGRAM_MATRICES_ARB 0x862F
#define | GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
#define | GL_PROGRAM_ERROR_STRING_ARB 0x8874
#define | GL_MATRIX0_ARB 0x88C0
#define | GL_MATRIX1_ARB 0x88C1
#define | GL_MATRIX2_ARB 0x88C2
#define | GL_MATRIX3_ARB 0x88C3
#define | GL_MATRIX4_ARB 0x88C4
#define | GL_MATRIX5_ARB 0x88C5
#define | GL_MATRIX6_ARB 0x88C6
#define | GL_MATRIX7_ARB 0x88C7
#define | GL_MATRIX8_ARB 0x88C8
#define | GL_MATRIX9_ARB 0x88C9
#define | GL_MATRIX10_ARB 0x88CA
#define | GL_MATRIX11_ARB 0x88CB
#define | GL_MATRIX12_ARB 0x88CC
#define | GL_MATRIX13_ARB 0x88CD
#define | GL_MATRIX14_ARB 0x88CE
#define | GL_MATRIX15_ARB 0x88CF
#define | GL_MATRIX16_ARB 0x88D0
#define | GL_MATRIX17_ARB 0x88D1
#define | GL_MATRIX18_ARB 0x88D2
#define | GL_MATRIX19_ARB 0x88D3
#define | GL_MATRIX20_ARB 0x88D4
#define | GL_MATRIX21_ARB 0x88D5
#define | GL_MATRIX22_ARB 0x88D6
#define | GL_MATRIX23_ARB 0x88D7
#define | GL_MATRIX24_ARB 0x88D8
#define | GL_MATRIX25_ARB 0x88D9
#define | GL_MATRIX26_ARB 0x88DA
#define | GL_MATRIX27_ARB 0x88DB
#define | GL_MATRIX28_ARB 0x88DC
#define | GL_MATRIX29_ARB 0x88DD
#define | GL_MATRIX30_ARB 0x88DE
#define | GL_MATRIX31_ARB 0x88DF

## Macro Definition Documentation

## GL_COLOR_SUM_ARB

#define GL_COLOR_SUM_ARB 0x8458

## GL_CURRENT_MATRIX_ARB

#define GL_CURRENT_MATRIX_ARB 0x8641

## GL_CURRENT_MATRIX_STACK_DEPTH_ARB

#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640

## GL_CURRENT_VERTEX_ATTRIB_ARB

#define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626

## GL_MATRIX0_ARB

#define GL_MATRIX0_ARB 0x88C0

## GL_MATRIX10_ARB

#define GL_MATRIX10_ARB 0x88CA

## GL_MATRIX11_ARB

#define GL_MATRIX11_ARB 0x88CB

## GL_MATRIX12_ARB

#define GL_MATRIX12_ARB 0x88CC

## GL_MATRIX13_ARB

#define GL_MATRIX13_ARB 0x88CD

## GL_MATRIX14_ARB

#define GL_MATRIX14_ARB 0x88CE

## GL_MATRIX15_ARB

#define GL_MATRIX15_ARB 0x88CF

## GL_MATRIX16_ARB

#define GL_MATRIX16_ARB 0x88D0

## GL_MATRIX17_ARB

#define GL_MATRIX17_ARB 0x88D1

## GL_MATRIX18_ARB

#define GL_MATRIX18_ARB 0x88D2

## GL_MATRIX19_ARB

#define GL_MATRIX19_ARB 0x88D3

## GL_MATRIX1_ARB

#define GL_MATRIX1_ARB 0x88C1

## GL_MATRIX20_ARB

#define GL_MATRIX20_ARB 0x88D4

## GL_MATRIX21_ARB

#define GL_MATRIX21_ARB 0x88D5

## GL_MATRIX22_ARB

#define GL_MATRIX22_ARB 0x88D6

## GL_MATRIX23_ARB

#define GL_MATRIX23_ARB 0x88D7

## GL_MATRIX24_ARB

#define GL_MATRIX24_ARB 0x88D8

## GL_MATRIX25_ARB

#define GL_MATRIX25_ARB 0x88D9

## GL_MATRIX26_ARB

#define GL_MATRIX26_ARB 0x88DA

## GL_MATRIX27_ARB

#define GL_MATRIX27_ARB 0x88DB

## GL_MATRIX28_ARB

#define GL_MATRIX28_ARB 0x88DC

## GL_MATRIX29_ARB

#define GL_MATRIX29_ARB 0x88DD

## GL_MATRIX2_ARB

#define GL_MATRIX2_ARB 0x88C2

## GL_MATRIX30_ARB

#define GL_MATRIX30_ARB 0x88DE

## GL_MATRIX31_ARB

#define GL_MATRIX31_ARB 0x88DF

## GL_MATRIX3_ARB

#define GL_MATRIX3_ARB 0x88C3

## GL_MATRIX4_ARB

#define GL_MATRIX4_ARB 0x88C4

## GL_MATRIX5_ARB

#define GL_MATRIX5_ARB 0x88C5

## GL_MATRIX6_ARB

#define GL_MATRIX6_ARB 0x88C6

## GL_MATRIX7_ARB

#define GL_MATRIX7_ARB 0x88C7

## GL_MATRIX8_ARB

#define GL_MATRIX8_ARB 0x88C8

## GL_MATRIX9_ARB

#define GL_MATRIX9_ARB 0x88C9

## GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB

#define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1

## GL_MAX_PROGRAM_ATTRIBS_ARB

#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD

## GL_MAX_PROGRAM_ENV_PARAMETERS_ARB

#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5

## GL_MAX_PROGRAM_INSTRUCTIONS_ARB

#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1

## GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB

#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4

## GL_MAX_PROGRAM_MATRICES_ARB

#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F

## GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB

#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E

## GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB

#define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3

## GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB

#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF

## GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB

#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3

## GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB

#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB

## GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB

#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7

## GL_MAX_PROGRAM_PARAMETERS_ARB

#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9

## GL_MAX_PROGRAM_TEMPORARIES_ARB

#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5

## GL_MAX_VERTEX_ATTRIBS_ARB

#define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869

## GL_PROGRAM_ADDRESS_REGISTERS_ARB

#define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0

## GL_PROGRAM_ATTRIBS_ARB

#define GL_PROGRAM_ATTRIBS_ARB 0x88AC

## GL_PROGRAM_BINDING_ARB

#define GL_PROGRAM_BINDING_ARB 0x8677

## GL_PROGRAM_ERROR_POSITION_ARB

#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B

## GL_PROGRAM_ERROR_STRING_ARB

#define GL_PROGRAM_ERROR_STRING_ARB 0x8874

## GL_PROGRAM_FORMAT_ARB

#define GL_PROGRAM_FORMAT_ARB 0x8876

## GL_PROGRAM_FORMAT_ASCII_ARB

#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875

## GL_PROGRAM_INSTRUCTIONS_ARB

#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0

## GL_PROGRAM_LENGTH_ARB

#define GL_PROGRAM_LENGTH_ARB 0x8627

## GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB

#define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2

## GL_PROGRAM_NATIVE_ATTRIBS_ARB

#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE

## GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB

#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2

## GL_PROGRAM_NATIVE_PARAMETERS_ARB

#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA

## GL_PROGRAM_NATIVE_TEMPORARIES_ARB

#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6

## GL_PROGRAM_PARAMETERS_ARB

#define GL_PROGRAM_PARAMETERS_ARB 0x88A8

## GL_PROGRAM_STRING_ARB

#define GL_PROGRAM_STRING_ARB 0x8628

## GL_PROGRAM_TEMPORARIES_ARB

#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4

## GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB

#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6

## GL_TRANSPOSE_CURRENT_MATRIX_ARB

#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7

## GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB

#define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622

## GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB

#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A

## GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB

#define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645

## GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB

#define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623

## GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB

#define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624

## GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB

#define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625

## GL_VERTEX_PROGRAM_ARB

#define GL_VERTEX_PROGRAM_ARB 0x8620

Referenced by osg::VertexProgram::getModeUsage().

## GL_VERTEX_PROGRAM_POINT_SIZE_ARB

#define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642

## GL_VERTEX_PROGRAM_TWO_SIDE_ARB

#define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643

## OSG_VERTEXPROGRAM

#define OSG_VERTEXPROGRAM 1