"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_Curve Library


Description
Curve library

Number of functions: 10

HYP_Curve.Create

Description
Creates a new curve object.

Languages: Lua - Python

Parameters
  • numPoints [INTEGER]: number of points

    Return Values
  • curveId [INTEGER]: curve identifier

    Code sample :

    curveId = HYP_Curve.Create(1000)


    HYP_Curve.Destroy

    Description
    Destroys an existing curve object.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier

    Code sample :

    HYP_Curve.Destroy(curveId)


    HYP_Curve.GetNumPoints

    Description
    Returns the curve's number of points.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier

    Return Values
  • numPoints [INTEGER]: number of points

    Code sample :

    curveId = HYP_Object.GetId("myCurve")
    num_points = HYP_Curve.GetNumPoints(curveId);


    HYP_Curve.GetVertexPosition

    Description
    Gets the position of a point on the curve.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • index [INTEGER]: index of the point. Range: [0 ; HYP_Curve.GetNumPoints()-1]

    Return Values
  • x, y, z [REAL]: position

    Code sample :

    numPoints = HYP_Curve.GetNumPoints(curveId);
    x, y, z = HYP_Curve.GGetVertexPosition(curveId, numPoints/2);


    HYP_Curve.SetVertexPosition

    Description
    Sets the position of a point on the curve.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • index [INTEGER]: index of the point. Range: [0 ; HYP_Curve.GetNumPoints()-1]
  • x, y, z [REAL]: position

    Code sample :

    numPoints = HYP_Curve.GetNumPoints(curveId);
    HYP_Curve.SetVertexPosition(curveId, numPoints/2, x, y, z);


    HYP_Curve.SetVertexColor

    Description
    Sets the color of a point on the curve.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • index [INTEGER]: index of the point. Range: [0 ; HYP_Curve.GetNumPoints()-1]
  • r, g, b, a [REAL]: color in RGBA form.

    Code sample :

    numPoints = HYP_Curve.GetNumPoints(curveId);
    HYP_Curve.SetVertexColor(curveId, numPoints/2, 0.2, 0.5, 0.5, 1.0);


    HYP_Curve.GetVertexColor

    Description
    Gets the color of a point on the curve.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • index [INTEGER]: index of the point. Range: [0 ; HYP_Curve.GetNumPoints()-1]

    Return Values
  • r, g, b, a [REAL]: color in RGBA form

    Code sample :

    numPoints = HYP_Curve.GetNumPoints(curveId);
    r, g, b, a = HYP_Curve.GetVertexColor(curveId, numPoints/2);


    HYP_Curve.SetVerticesColor

    Description
    Sets the color of all curve's vertices.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • r, g, b, a [REAL]: color in RGBA form.

    Code sample :

    HYP_Curve.SetVertexColor(curveId, 0.2, 0.5, 0.5, 1.0);


    HYP_Curve.SetStartIndex

    Description
    Sets the starting point of curve rendering.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • index [INTEGER]: index of the point. Range: [0 ; HYP_Curve.GetNumPoints()-1]

    Code sample :

    HYP_Curve.SetStartIndex(curveId, 0);


    HYP_Curve.SetEndIndex

    Description
    Sets the ending point of curve rendering.

    Languages: Lua - Python

    Parameters
  • curveId [INTEGER]: curve identifier
  • index [INTEGER]: index of the point. Range: [0 ; HYP_Curve.GetNumPoints()-1]

    Code sample :

    numPoints = HYP_Curve.GetNumPoints(curveId);
    HYP_Curve.SetEndIndex(curveId, numPoints/2);




  • Random Projects

    Night Vision PostFX
    Night Vision PostFX

    Bump Mapping Multiple Lights
    Bump Mapping Multiple Lights

    Night Vision PostFX
    Night Vision PostFX


    Random Code Samples

    DirectX Format Loading
    DirectX Format Loading

    Post Direct Rendering
    Post Direct Rendering

    Draw Line
    Draw Line



    (C)2009-2010 Geeks3D.com