All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
29
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to For Beginners
Pole Position like in C
For Beginners
Started by
taoufikallah
July 22, 2012 01:35 PM
3
comments, last by
taoufikallah
11 years, 9 months ago
taoufikallah
109
Author
July 22, 2012 01:35 PM
I need to know if I can do something like this with SDL or I need to use opengl.
My concern is the road, how do I make a road like this?
Thank you!
Cancel
Save
Advertisement
riverreal
797
July 22, 2012 01:53 PM
The game was made with scaling sprites.
It is not 3d at all, but it seems to
SDL doesn't provide scaling functionality, but there is an aditional library like SDL_gfx for scaling sprites.
Cancel
Save
taoufikallah
109
Author
July 22, 2012 01:57 PM
I see, SDL_gfx, I already used some function of this library. can you point me where I can learn this scaling stuff, please?
Thank you
Cancel
Save
riverreal
797
July 22, 2012 02:06 PM
Create you own examples and experiment with it.
For example, load an image, blit it, and scale it with gfx library using an user input.
Old tutorial:
http://aaroncox.net/.../sdlshapes.html
Documentation:
http://www.ferzkopp....html/files.html
I think you will need "rotozoom" in the gfx library for the scaling so:
Rotozoom documentation:
http://www.ferzkopp....otozoom_8h.html
Cancel
Save
taoufikallah
109
Author
July 22, 2012 02:10 PM
Thank you for all the help, I appreciate it.
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Understanding the wavy-like shape in alpha-testing magnification for text rendering
Graphics and GPU Programming
Advertisement
Recommended Tutorials
The Art of Feeding Time: Backgrounds
Visual Arts
Flavien Brebion
Interviews
WinSock2 for Games
Networking and Multiplayer
Torque For Teens
Archive
The Physics of Racing Series, FAQ
Math and Physics
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top