Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
oivShapeAttribute.h File Reference

This file contains fonction to acces vertex attributes. More...

Go to the source code of this file.

Functions

vec4 OivVertexPosition ()
 Get the position of the current vertex.
 
vec3 OivVertexNormal ()
 Get the normal of the current vertex.
 
vec3 OivVertexTangent ()
 Get the tangent of the current vertex.
 
vec4 OivVertexColor ()
 Get the color of the current vertex.
 
vec4 OivVertexTextureCoordinate (int unit)
 Get the texture coordinate of the current vertex.
 
uint OivVertexDrawIndex ()
 

Detailed Description

This file contains fonction to acces vertex attributes.

Definition in file oivShapeAttribute.h.

Function Documentation

◆ OivVertexColor()

vec4 OivVertexColor ( )

Get the color of the current vertex.

Returns
the color of the current vertex.

◆ OivVertexDrawIndex()

uint OivVertexDrawIndex ( )

◆ OivVertexNormal()

vec3 OivVertexNormal ( )

Get the normal of the current vertex.

Returns
the normal of the current vertex.

◆ OivVertexPosition()

vec4 OivVertexPosition ( )

Get the position of the current vertex.

Returns
the position of the current vertex.

◆ OivVertexTangent()

vec3 OivVertexTangent ( )

Get the tangent of the current vertex.

Returns
the tangent of the current vertex.

◆ OivVertexTextureCoordinate()

vec4 OivVertexTextureCoordinate ( int  unit)

Get the texture coordinate of the current vertex.

Parameters
unitspecifies which texture unit between 0 and OivMaxTextureUnit()-1.
Returns
the texture coordinate of the current vertex for a given texture unit.