Home » U++ Library support » U++ Library : Other (not classified elsewhere) » opengl & tekstures
Re: opengl & tekstures [message #1888 is a reply to message #1886] |
Fri, 24 March 2006 23:01   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
Actually, more clever way would be like this
AUX_RGBImageRec* OpenGL::LoadBMP(char *Filename) // Loads A Bitmap Image
{
FILE *File=NULL; // File Handle
if (!Filename) // Make Sure A Filename Was Given
{
PromptOK("Where is your filename?!" );
return NULL; // If Not Return NULL
}
File=fopen(Filename,"r"); // Check To See If The File Exists
if (File) // Does The File Exist?
{
fclose(File); // Close The Handle
return auxDIBImageLoad(Filename); // Load The Bitmap And Return A Pointer
}
else PromptOK("Couldn't load "+ AsString(Filename) );
return NULL; // If Load Failed Return NULL
}
[Updated on: Fri, 24 March 2006 23:02] Report message to a moderator
|
|
|
 |
|
opengl & tekstures
By: barpas on Thu, 23 March 2006 13:21
|
 |
|
Re: opengl & tekstures
By: unodgs on Fri, 24 March 2006 08:45
|
 |
|
Re: opengl & tekstures
By: fudadmin on Fri, 24 March 2006 22:53
|
 |
|
Re: opengl & tekstures
By: fudadmin on Fri, 24 March 2006 23:01
|
 |
|
Re: opengl & tekstures
By: mirek on Fri, 24 March 2006 23:19
|
 |
|
Re: opengl & tekstures
By: barpas on Sat, 25 March 2006 01:22
|
 |
|
Re: opengl & tekstures
|
 |
|
Re: opengl & tekstures
By: barpas on Wed, 12 April 2006 16:36
|
 |
|
Re: opengl & tekstures
By: fudadmin on Wed, 12 April 2006 16:55
|
 |
|
Re: opengl & tekstures
By: fudadmin on Wed, 12 April 2006 17:02
|
 |
|
Re: opengl & tekstures
|
 |
|
Re: opengl & tekstures
By: mirek on Mon, 01 May 2006 10:07
|
 |
|
Re: opengl & tekstures
|
Goto Forum:
Current Time: Wed Apr 30 03:22:23 CEST 2025
Total time taken to generate the page: 0.00662 seconds
|