Thread: Loading textures to screen

  1. #1
    Registered User
    Join Date
    Nov 2005

    Loading textures to screen

    i want to get a 2d texture of a spaceship and then.....blah blah...the rest can wait until i do this first.

    1. how would i go about getting a 2D texture for my vertical shooter game?
    2. with the API im using (HAPI - if you want more info just ask) there is a load texture function. all i have to do is initialise my texture, declare a pointer to it and then use the load texture function.....or so i thought.

    BYTE *spaceship.tga = backgroundPtr;
    HAPI_LoadTexture ("spaceship.tga", &backgroundPtr);
    apparently my pointer to the texture is 'an undeclared identifier' and i have a syntax error which states there is a missing semicolon before the '.' in the first line - i tried to fix it....unsuccessfully.

  2. #2
    the Great ElastoManiac's Avatar
    Join Date
    Nov 2005
    Republika Srpska - Balkan
    What API are you using???
    lu lu lu I've got some apples lu lu lu You've got some too lu lu lu Let's make some applesauce Take off our clothes and lu lu lu

  3. #3
    Yah. Morgul's Avatar
    Join Date
    Feb 2005

    a) It isn't going to let you put a period in a name
    b) You forgot a semicolon on a line of code above
    Sic vis pacum para bellum. If you want peace, prepare for war.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 04:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 10:18 PM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 05:16 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Loading Screen
    By pinkcheese in forum Windows Programming
    Replies: 2
    Last Post: 04-06-2002, 11:48 PM