Home Creators Posts Import Register Favorites Logout

Content

Turns out I've been crunching for a year and a half, which only felt like a year...which I guess is high praise for ongoing crunch...but I missed this little video series where I mumble gently into a microphone and lull viewers into a state of meditation with the tippity tapping of my unmuffled keyboard.

Part 15 is up! We discover the magic of hit testing and input focus, while we heighten our WinAmpiness by 14 more pixels.

Did you really want to see your name at the end of this video and forget to add it to the list? Go click that link; I'll hopefully not wait another 18 months to do the next video!

Files

Writing a Simple Media Player with SDL, part 15: The Titlebar and Hit Testing

Ugh, it's actually been a year _and a half_. :/ Today we're getting an _actual_ WinAmp titlebar, and learning about a little-known feature of SDL called "hit testing," which lets your app do something kinda magical. Source code for today's efforts: https://github.com/icculus/sdlamp/blob/76eadbd56a666a2928d26c2b54fc43586e52e7c7/sdlamp.c Want to be listed in the credits? I've got a blank space, baby, and I'll write your name! https://patreon.com/icculus or https://github.com/sponsors/icculus Sounds played today: The Living Proof, by Will Provost: https://www.youtube.com/watch?v=hqLYAY6hHe8

Comments

Alex Malinovich

First time watching one of your coding videos, and is that actually FTE? I thought it stopped being maintained around 2000 or so.

Ryan C. Gordon

It _is_ FTE! I have my own fork of it, which uses SDL2. :)

Josh 'Cheeseness' Bush

A year and a half? Surely not. It's only been a few months, tops. It's still February, right? ;_; BTW, do you have the volume and pan sliders positioned correctly? I think they're meant to be vertically centered on the bar. Hope things are settling down for you!

Ryan C. Gordon

I'll have to check on the sliders. I'm totally winging everything all the time, so it's quite possibly wrong. :)

Josh 'Cheeseness' Bush

You're doing great regardless. I really appreciate the... take-it-as-it-comes approach and the way you're talking through your thought processes!

BJ

Ryan.. you rock