"No one can be told what GeeXLab is, you have to see it for yourself!"

"Stop Playing Games and Start Making Them! With GeeXLab, your are on your way!"


Quick Links
What is GeeXLab
Download GeeXLab
GeeXLab Requirements
Online Help
Articles and Tutorials
Samples Screenshots
Videos

GeeXLab Changelog

XML Ref. Guide
Scripting Ref. Guide
Code Samples

Purchase GeeXLab
GeeXLab SDK

Shader Library

Follow GeeXLab's News
GeeXLab news, articles, tutorials and demos @ Geeks3D.com
GeeXLab @ Twitter GeeXLab RSS Feed

Subscribe to GeeXLab news by email

[ Back to Geeks3D.com ]

GeeXLab

GeeXLab

Laboratory for Real Time 3D Programming (prototyping and demos)
OpenGL, Lua, Python, GLSL,
PhysX and more...

Reference Guide
Host-API Lua / Python



Back to Homepage
Back to Developer's Guide Index

HYP_VertexPool Library


Description
Vertex pool object

Number of functions: 11

HYP_VertexPool.Create

Description
Creates a vertex pool.

Languages: Lua

Parameters
  • num_vertices [INTEGER]: Number of vertices in the vertex pool.
  • name [STRING]: Name of vertex pool, optional .

    Return Values
  • vp_id [INTEGER]: Vertex pool identifier

    Code sample :
    vp_id = HYP_VertexPool.Create( num_vertices, [name] );


    HYP_VertexPool.Destroy

    Description
    Destroys a vertex pool

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.

    Code sample :

    HYP_VertexPool.Destroy( id_vp )


    HYP_VertexPool.SetVertexPosition

    Description
    SetVertexPosition allows to change the position of one particular vertex in the pool. The fast version of the function does no validity checking on parameters

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • vertex_index [INTEGER]: Index of vertex in the vertex pool.
  • x [REAL]: Coordinate in X of vertex
  • y [REAL]: Coordinate in Y of vertex
  • z [REAL]: Coordinate in Z of vertex

    Code sample :

    HYP_VertexPool.SetVertexPosition( id_vp, vertex_index, x, y, z )


    HYP_VertexPool.GetVertexPosition

    Description
    GetVertexPosition allows to get the position of one particular vertex in the pool. The fast version of the function does no validity checking on parameters

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • vertex_index [INTEGER]: Index of Vertex in the vertex pool.

    Return Values
  • x [REAL]: Coordinate in X of vertex
  • y [REAL]: Coordinate in Y of vertex
  • z [REAL]: Coordinate in Z of vertex

    Code sample :

    x, y, z = HYP_VertexPool.GetVertexPosition( vp_id, vertex_index )


    HYP_VertexPool.SetVertexColor

    Description
    SetVertexColor allows to change the color of one particular vertex in a vertex pool. The fast version of the function does no validity checking on parameters.

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • vertex_index [INTEGER]: Index of Vertex in the vertex pool.
  • r [REAL]: red component of vertex color.
  • g [REAL]: green component of vertex color.
  • b [REAL]: blue component of vertex color.
  • a [REAL]: alpha component of vertex color.

    Code sample :

    HYP_VertexPool.SetVertexColor( vp_id, vertex_index, r, g, b, a )


    HYP_VertexPool.GetVertexColor

    Description
    GetVertexColor allows to get the color of one particular vertex in a vertex pool. The fast version of the function does no validity checking on parameters.

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • vertex_index [INTEGER]: Index of Vertex in the vertex pool.

    Return Values
  • r [REAL]: red component of vertex color.
  • g [REAL]: green component of vertex color.
  • b [REAL]: blue component of vertex color.
  • a [REAL]: alpha component of vertex color.

    Code sample :

    r, g, b, a = HYP_VertexPool.GetVertexColor( vp_id, vertex_index );


    HYP_VertexPool.SetVerticesColor

    Description
    SetVerticesColor allows to set the color of all the vertex pool vertices.

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • r [REAL]: red component of vertices color.
  • g [REAL]: green component of vertices color.
  • b [REAL]: blue component of vertices color.
  • a [REAL]: alpha component of vertices color.

    Return Values
  • id [INTEGER]: Playlist identifier

    Code sample :

    HYP_VertexPool.SetVerticesColor( vp_id, r, g, b, a )


    HYP_VertexPool.SetVerticesSize

    Description
    SetVerticesSize allows to change the size of all the vertex pool vertices.

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • size [REAL]:

    Code sample :

    HYP_VertexPool.SetVerticesSize( vp_id, size )


    HYP_VertexPool.Create

    Description


    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • a [REAL]: A constant component of the distance attenuation factor.
  • b [REAL]: B linear component of the distance attenuation factor.
  • c [REAL]: C quaratic component of the distance attenuation factor.

    Code sample :

    HYP_VertexPool.SetPointSpriteDistAtt( vp_id, a, b, c )


    HYP_VertexPool.SetVertexRenderingState

    Description
    SetVertexRenderingState activates or desactivates the rendering of one particular vertex in a vertex pool.

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • vertex_index [INTEGER]: Index of Vertex in the vertex pool.
  • state [INTEGER]: Activate the rendering of the vertex =1 , desactivate = 0.

    Code sample :

    HYP_VertexPool.SetVertexRenderingState( vp_id, vertex_index, state );


    HYP_VertexPool.GetVertexRenderingState

    Description
    GetVertexRenderingState returns the rendering state of one particular vertex.

    Languages: Lua

    Parameters
  • vp_id [INTEGER]: identifier of vertex pool.
  • vertex_index [INTEGER]: Index of Vertex in the vertex pool.

    Return Values
  • state [INTEGER]: 1 = rendering of the vertex activated =1 , 0 = desactivated.

    Code sample :

    state = HYP_VertexPool.GetVertexRenderingState( vp_id, vertex_index )




  • Random Projects

    Dream Vision Effect
    Dream Vision Effect

    Depth Buffer Visualization
    Depth Buffer Visualization

    PyOpenGL_LAB
    PyOpenGL_LAB


    Random Code Samples

    OBJ Format Loading
    OBJ Format Loading

    Point Light - Phong Lighting
    Point Light - Phong Lighting

    Python - NetworkX
    Python - NetworkX



    (C)2009-2010 Geeks3D.com