Open in app
Home
Notifications
Lists
Stories

Write
Ole Vegard Mythe Moland
Ole Vegard Mythe Moland

Home

Jan 23

[ SDL2 — Part 8] Rotating textures

Introduction In the previous part we learned how to load and render png files with alpha layers. This time we’re gonna dive into rotating textures. Or more precisely ; rendering them rotated. Today we’ll be making a simple, but working, analog clock. This will show how to rotate textures in SDL…

Game Development

4 min read

[ SDL2 — Part 8] Rotating textures
[ SDL2 — Part 8] Rotating textures

Jan 22

[ SDL2 — Part 7] Loading png files

Using PNG In the previous post we learned how to load .bmp files. Which is not optimal. The .bmp format means the files grow large and there is no `alpha layer` ( no transparency. ) Which means you end up with ugly opaque edges instead of transparency SDL 2 Image Up until now, we’ve only…

Sdl 2

3 min read

[ SDL2 — Part 7] Loading png files
[ SDL2 — Part 7] Loading png files

Jan 16

[ SDL2 — Part 6] Loading textures

Loading textures In this tutorial you will learn how to load images ( just .bmp for now, the next part will cover.png ). First of all, a little info about the two new structs we’ll be using Previous part You can find the previous part here. SDL_Surface This is part of the old SDL (…

Sdl

4 min read

[ SDL2 — Part ] Loading textures
[ SDL2 — Part ] Loading textures

Jan 16

[ SDL2 — Part 5]Collision detection

Collision detection is one of the key aspects of game programming. For all non-circular or non-rectangular objects it gets harder and harder the more accurate you want it to be. But today we’re gonna continue just using rectangles. …

Game Programming

3 min read

[ SDL2 — Part 5]Collision detection
[ SDL2 — Part 5]Collision detection

Jan 16

[ SDL2 — Part 4] Making things happen

Making things happen! Games without any input would be really boring. Actually it wouldn’t be a game at all, just a movie. So let’s look at how we can get input so that the player can actually play the game. But before we do that, we need to take a look at how…

Sdl 2

3 min read


Jan 15

[ SDL2 — Part 3] Drawing rectangles

This part will teach you the basics of the coordinate system in SDL( it’s the same for the “old” SDL and SDL2 ). It will also teach you about a new and very important struct, SDL_Rect. You’ll be using it a lot! And finally we’ll draw something! Previous part You can find…

Sdl 2

4 min read


Jan 15

[ SDL2 — Part 2 ] Your first SDL2 application

Note : I’m in the process of moving my old blog headerphile.com to Medium. This is mostly an experiment to see if this works better for me and to help me avoid spam comments etc. …

Sdl 2

6 min read


Mar 28, 2021

[ SDL2 — Part 1 ] Setting up SDL2

Introduction Note : I’m in the process of moving my old blog headerphile.com to Medium. This is mostly an experiment to see if this works better for me and to help me avoid spam comments etc. …

Sdl 2

4 min read

Ole Vegard Mythe Moland

Ole Vegard Mythe Moland

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable