PDA

View Full Version : Bitmap encryption



NDLeo5
02-23-2013, 07:44 AM
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.

Alfonse Reinheart
02-23-2013, 03:17 PM
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.

The Little Body
02-24-2013, 12:24 PM
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 http://www.g-truc.net/project-0024.html

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 http://www.icculus.org/homepages/phaethon/q3/formats/md3format.html or http://fr.wikipedia.org/wiki/Objet_3D_%28format_de_fichier%29 for example

NDLeo5
03-08-2013, 08:14 AM
Thanks for reply but how can I pack files together?. Its maybe C++ question but if possible to answer Ill be very happy...:)