Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: Help - Create texture

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2008
    Posts
    2

    Help - Create texture

    Hi,

    I have an assignment that is suppose to create the following 5 functions to create a texture for mapping later, can someone help.

    Regards,
    munwen

    void initTexture(void)
    {
    /* create texture image, texture environment and download the texture */
    }
    void setupTexture(void)
    {
    /* enable texturing and bind texture */
    }
    void finishTexture(void)
    {
    /* disable texturing and unbind texture */
    }
    void setupTexGen(void)
    {
    /* setup and enable texture coordinate generation */
    }
    void finishTexGen(void)
    {
    /* disable texture coordinate generation */
    }

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Help - Create texture

    You want other people to do your homework ?

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    748

    Re: Help - Create texture

    nehe.gamedev.net
    It's all there

  4. #4
    Advanced Member Frequent Contributor _NK47's Avatar
    Join Date
    Mar 2008
    Posts
    574

    Re: Help - Create texture


  5. #5
    Junior Member Newbie
    Join Date
    Oct 2008
    Posts
    2

    Re: Help - Create texture

    I'm sorry, that's not intention....I'm a newbie to opengl, hence would like to seek some advise and guidance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •