Thread: A Few Simple Questions

  1. #1
    People Love Me
    Join Date
    Jan 2003
    Posts
    412

    Question A Few Simple Questions

    1.) If I wanted to create a background for a side-scrolling game, all I'd have to do is draw it up in paint, load it up as a texture for a 2D Quad, and just have it move when the character moves? Is this true, or do you have to use tiling methods and etc.?

    2.) Whenever I resize the program's window, all my textures get scaled up or down and look dumb. Is there any way to prevent the window from being resized, or to keep the textures the same size, regardless of the window size?

    3.) Can someone give me a little bit of general info on how animation can be done using OpenGL? I really have no clue how you'd do it.

    4.) When you're doing collision detection, is it most common to set up variables in glTranslatef() and glVertex3f()? Do you draw another invisible box over the original box? Or do you just declare variables to be at a certain position?

    (ex. GLfloat = 1.0f

    I really have no idea what I'm doing here.

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    http://cboard.cprogramming.com/showt...threadid=43026
    http://cboard.cprogramming.com/showt...threadid=42113
    http://cboard.cprogramming.com/showt...threadid=41820
    http://cboard.cprogramming.com/showt...threadid=41851
    http://cboard.cprogramming.com/showt...threadid=41711
    http://cboard.cprogramming.com/showt...threadid=40704
    http://cboard.cprogramming.com/showt...threadid=39506
    http://cboard.cprogramming.com/showt...threadid=38743
    http://cboard.cprogramming.com/showt...threadid=38696
    http://cboard.cprogramming.com/showt...threadid=38652
    http://cboard.cprogramming.com/showt...threadid=33471

    Geeze man, don't you ever read tutorials, or use Google? Do you really have to ask on here every time? I mean... I saw that you asked what "HWND" means. $20 says you didn't look for the answer before you asked. Just in case I'd lose that $20, another $100 says that if you seriously looked and didn't find it, you're stupid

    2) Yes
    3) Dude. Just like animation is done with any API. Have you Googled?
    4) Haven't you asked questions a lot like that before? Have you tried reading any tutorials? Have you tried figuring it out on your own? Have you even thought about what you're trying to do?

    >>I really have no idea what I'm doing here.<<
    I know. It's obvious RTFM. STFW. Honestly.

    Away.

  3. #3
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Originally posted by confuted
    Dingen
    I see.

  4. #4
    1) Yes
    2) Mipmap
    3) Depends on what sort you mean primitive or bitmap

  5. #5
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by Krak
    I see.
    No, no you dont.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A couple questions
    By Flakster in forum C++ Programming
    Replies: 7
    Last Post: 08-09-2005, 01:22 PM
  3. Few simple questions...
    By Shane in forum C++ Programming
    Replies: 9
    Last Post: 08-06-2005, 02:40 AM
  4. A few simple batch questions
    By sean in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 07-02-2003, 01:35 PM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM