Loading textures to screen

This is a discussion on Loading textures to screen within the Game Programming forums, part of the General Programming Boards category; i want to get a 2d texture of a spaceship and then.....blah blah...the rest can wait until i do this ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    13

    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.

    so:
    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.

    Code:
    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
    Location
    Republika Srpska - Balkan
    Posts
    377
    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
    Posts
    109
    Either:

    a) It isn't going to let you put a period in a name
    or
    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, 03:56 PM
  2. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 04: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, 10:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21