• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Implementing OpenGL using GLUT or simply native OpenGL...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing OpenGL using GLUT or simply native OpenGL...


  • Subject: Re: Implementing OpenGL using GLUT or simply native OpenGL...
  • From: John Harte <email@hidden>
  • Date: Sun, 16 Dec 2001 14:01:22 -0500

I got Lesson 12 & 18 to run by replacing

raw->tmpR = (unsigned char *)malloc(raw->sizeX*256);
raw->tmpG = (unsigned char *)malloc(raw->sizeX*256);
raw->tmpB = (unsigned char *)malloc(raw->sizeX*256);
with
raw->tmpR = (unsigned char *)malloc(raw->sizeX*25600);
raw->tmpG = (unsigned char *)malloc(raw->sizeX*25600);
raw->tmpB = (unsigned char *)malloc(raw->sizeX*25600);

I don't know if this is the correct way to fix this but it seems to work.

This code does not seem to have anything to do with OpenGL, it just reads in a file.

John


References: 
 >Implementing OpenGL using GLUT or simply native OpenGL... (From: Steven Canfield <email@hidden>)

  • Prev by Date: Re: Print Panel as sheet
  • Next by Date: drag and delete.
  • Previous by thread: Implementing OpenGL using GLUT or simply native OpenGL...
  • Next by thread: NeXTWORLD floppy disk, anyone?
  • Index(es):
    • Date
    • Thread