This topic is now archived and is closed to further replies.

terrain RAW loading - sub for BYTE in linux

This topic is 5525 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I''m borrowing code from to load terrain from a RAW grayscale image. The code was originally written for Windows, but I am developing on Linux, and I''m having problems converting some of the code for use on Linux. The original loader reads the RAW data into an array of BYTEs. The func declaration is void LoadRawFile(LPSTR strName, int nSize, BYTE *pHeightMap). However, BYTE wouldn''t compile on Linux, so I tried replacing it with GLbyte, GLubyte and char, none of which gave me the right results, ie. the RAW file was not read correctly. Does anyone know what type I should be using?? Is there a Linux equivalent to BYTE? Thanks!

Share this post

Link to post
Share on other sites