Results 1 to 4 of 4

Thread: create npot texture

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2008
    Posts
    139

    create npot texture

    Hello,
    how do I create a 2d npot texture ?There is the GL_ARB_texture_non_power_of_two extension. Do i need
    to load it like other extensions with wglGetProcAddress ?

    glBindTexture( then what ? )

    regards,
    lobbel

  2. #2
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: create npot texture

    You simply create a texture with npot size, in exactly the same way as you do POT textures. The existence of that extension in the ext-string simply tells us that the GPU supports such sizes.
    So, no code-changes.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Apr 2007
    Posts
    268

    Re: create npot texture

    A generic way to answer this kind of questions is to look at the extension description itself:
    http://www.opengl.org/registry/spec/...wer_of_two.txt

    and look for the section "New Procedures and Functions".

    In this particular case, the contents of this section is
    "None".

    Hence, there is no new function to load.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Sep 2008
    Posts
    139

    Re: create npot texture

    Thank you.
    Should learn to read.

    lobbel

Similar Threads

  1. NPOT texture performance on ES 2.0
    By mlfarrell in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-23-2013, 10:27 PM
  2. Bug with glTexSubImage2D with Texture NPOT
    By mop in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-17-2008, 07:51 AM
  3. NPOT Texture streaming
    By nystep in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-25-2008, 11:47 AM
  4. NPOT 3d texture revisited
    By dobradusa in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 12-05-2006, 09:35 AM
  5. NPOT Texture Downsampling
    By skynet in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-02-2006, 08:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean