Results 1 to 3 of 3

Thread: Clearing texture

  1. #1
    Member Newbie
    Join Date
    Jan 2002
    Posts
    32

    Clearing texture

    How do I clear textures to a specific color? Well, I could do it by allocating some memory and then paste it to the texture with glTexSubImage2D() (or passing it to glTexImage2D()). But is there a faster way or a way using lesser memory?

  2. #2
    Member Newbie
    Join Date
    Jul 2001
    Location
    boston, ma, usa
    Posts
    30

    Re: Clearing texture

    Can you redraw the object with texture disable? Just a suggest

    Originally posted by plastichead:
    How do I clear textures to a specific color? Well, I could do it by allocating some memory and then paste it to the texture with glTexSubImage2D() (or passing it to glTexImage2D()). But is there a faster way or a way using lesser memory?

  3. #3
    Member Newbie
    Join Date
    Jan 2002
    Posts
    32

    Re: Clearing texture

    Oh yes, that hurts! You are right.

Similar Threads

  1. clearing a point
    By blaze157 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-29-2014, 01:15 PM
  2. Clearing SSBO
    By Mustard in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-15-2013, 03:35 AM
  3. FBO glClear not clearing the entire texture
    By OpenGL Developer in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 09-11-2011, 09:20 AM
  4. clearing
    By ajbiv in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-24-2009, 02:00 PM
  5. Clearing the buffer
    By tclay in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-18-2000, 08:07 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