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


Description
Render To Texture library

Number of functions: 8

HYP_RenderTexture.Create

Description
Creates a new render texture object.

Languages: Lua

Parameters
  • width [INTEGER]: render texture's width
  • height [INTEGER]: render texture's height

    Return Values
  • id [INTEGER]: object identifier

    Code sample :

    rtId = HYP_RenderTexture.Create(400, 400)


    HYP_RenderTexture.Destroy

    Description
    Destroys an existing render texture object.

    Languages: Lua

    Parameters
  • id [INTEGER]: object identifier

    Code sample :

    HYP_RenderTexture.Destroy(rtId)


    HYP_RenderTexture.AttachColorTexture

    Description
    Adds a color render target.

    Languages: Lua

    Parameters
  • id [INTEGER]: render texture object identifier
  • pixelFormat [INTEGER]: pixel format of the color render target. - Values = RGBA_FLOAT(0), RGB_FLOAT(12), RGBA_32F(4), RGBA_16F(6), RGB_32F(8), RGB_16F(7)

    Code sample :

    rtId = HYP_RenderTexture.Create(400, 400)
    RGBA_32F = 4
    HYP_RenderTexture.AttachColorTexture(rtId, RGBA_32F)


    HYP_RenderTexture.AttachDepthTexture

    Description
    Adds a depth render target.

    Languages: Lua

    Parameters
  • id [INTEGER]: render texture object identifier

    Code sample :

    rtId = HYP_RenderTexture.Create(400, 400)
    RGBA_32F = 4
    HYP_RenderTexture.AttachColorTexture(rtId, RGBA_32F)
    HYP_RenderTexture.AttachDepthTexture(rtId)


    HYP_RenderTexture.AttachRenderBuffer

    Description
    Adds a render buffer.

    Languages: Lua

    Parameters
  • id [INTEGER]: render texture object identifier
  • type [INTEGER]: render buffer type. - Values = TYPE_COLOR(0), TYPE_DEPTH(2), TYPE_STENCIL(2)
  • pixelFormat [INTEGER]: pixel format for the color render target. - Values = RGBA_FLOAT(0), RGB_FLOAT(12), RGBA_32F(4), RGBA_16F(6), RGB_32F(8), RGB_16F(7)

    HYP_RenderTexture.GetId

    Description
    Gets render texture identifier from its name. Useful when the render texture has been created in XML.

    Languages: Lua

    Parameters
  • name [STRING]: render texture name

    Return Values
  • rtId [INTEGER]: render texture identifier

    HYP_RenderTexture.Activate

    Description
    Activates the render texture. Once activated, all render call will draw on this render texture.

    Languages: Lua

    Return Values
  • rtId [INTEGER]: render texture identifier

    Code sample :

    HYP_RenderTexture.Activate(rtId)
    ...
    HYP_Object.Render(myObjectId)
    ...
    HYP_RenderTexture.Deactivate(rtId)


    HYP_RenderTexture.Deactivate

    Description
    Deactivates the render texture.

    Languages: Lua

    Return Values
  • rtId [INTEGER]: render texture identifier



  • Random Projects

    Dream Vision Effect
    Dream Vision Effect

    PyOpenGL_LAB
    PyOpenGL_LAB

    Gaussian Blur PostFX
    Gaussian Blur PostFX


    Random Code Samples

    3D Sound
    3D Sound

    Texture viewer
    Texture viewer

    3DS Format Loading
    3DS Format Loading



    (C)2009-2010 Geeks3D.com