Thread: Custom texture format?

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    411

    Custom texture format?

    I want to write a program that will let me load any texture file, and then save it plus some other data to a custom file format, then I want to make a sister library for use in my code just for loading this format.

    Im going to use DevIL for loading the textures (because it supports just about every format there is), my only experence with writeing files is with fstreams useing whitespaces between each seperate value in a file, I would not want to do that here because it would bloat the files. Any suggustions on how I should do this, or any other part for that matter?

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    You'd want to use binary read/writes - ifstream::read and ofstream::write or the C stdio versions. Some operating systems provide functions to read/write in binary that are often more efficient than the standard C/C++ equivalents.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. d3d9 c++ texture wrapper... again...
    By yaya in forum Game Programming
    Replies: 0
    Last Post: 04-01-2009, 01:08 PM
  2. D3d Texture Wrapper == ARRRGGGGHHH
    By yaya in forum Game Programming
    Replies: 1
    Last Post: 03-25-2009, 06:41 PM
  3. Replies: 4
    Last Post: 02-27-2008, 03:10 PM
  4. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM
  5. Custom Binary Format
    By Queatrix in forum Windows Programming
    Replies: 11
    Last Post: 04-22-2005, 09:24 PM