Bitmap encryption

Hi,
I have a 2 questions. Maybe its havent nothing about openGL so I dont know.
How can I store bitmaps to enscrypted file format?
Can openGL load encrypted files?

Many games or programs coded in OpenGL has enscrypted file formats whitch they can store many bitmaps (or models) to one file and then can load it.
Mabye its question whitch is difficult to answer but I want how can it be.
Thanks for answer and sorry for my English.

Many games or programs coded in OpenGL has enscrypted file formats whitch they can store many bitmaps (or models) to one file and then can load it.

That isn’t “enscryption” or “encryption”. That’s just packing files together. A file is just data on the disk; whatever meaning it has is provided by the application using the data.

OpenGL cannot load encrypted files because OpenGL cannot load files. OpenGL is a rendering API, nothing more. It has functions to transfer pixel data to an image. But it doesn’t have functions to read data from disk. And OpenGL doesn’t have functions to read encrypted data that has been loaded into memory.

I think you’re rather confused as to what “encryption” is.

As Alfonse say, OpenGL haven’t functionnality for to load files but is “only” designed for to render primitives

For loading bitmaps, you can use DevIL http://openil.sourceforge.net/ or GLI OpenGL Image (GLI)

For loading 3D objects, you can use specifics model loader libraries/utilties such as http://tfc.duke.free.fr/old/models/md2.htm or make youself the loader with infos provided by Description of MD3 Format (2011 Jul 11) or Objet 3D (format de fichier) — Wikipédia for example

Thanks for reply but how can I pack files together?. Its maybe C++ question but if possible to answer Ill be very happy…:slight_smile: