Results 1 to 2 of 2

Thread: gluScaleImage

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2004
    Location
    Russia
    Posts
    1

    gluScaleImage

    Hello, I have a problem in this code
    Code :
    typedef struct {
    GLubyte rgbRed;
    GLubyte rgbGreen;
    GLubyte rgbBlue;
    GLubyte rgbAlpha;
    } CGLRGB;
    Code :
    CGLRGB* Tex;
    Tmp = (CGLRGB *) malloc (Height*Width*4);
    CGLRGB* Tex;
    Tex = (CGLRGB *) malloc(2Height*2Width*4);
    Code :
    GLenum error;
    error = gluScaleImage(GL_RGBA,Width, Height, GL_UNSIGNED_BYTE, Tmp,2Width, 2Height, GL_UNSIGNED_BYTE, Tex);
    const GLubyte *errorbyte;
    errorbyte = gluErrorString(error);
    errorbyte = out_of_memory
    Why???

  2. #2
    Guest

    Re: gluScaleImage

    post the complete code block. otherwise, id say you are out of memory, and so would gl, apparently.

Similar Threads

  1. can't use gluScaleImage with GL_UNSIGNED_SHORT_5_6_5
    By jean-bobby in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-07-2004, 06:22 AM
  2. How to use gluScaleImage() ?
    By B_old in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-25-2003, 06:34 AM
  3. I NEED HELP! gluScaleImage
    By lyubo_zag in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-03-2001, 01:25 PM
  4. gluScaleImage()
    By lyubo_zag in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 05-02-2001, 11:39 AM
  5. gluscaleimage
    By hdark100 in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 03-26-2001, 10:19 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