This is a collection of source files containing many functions I've written for small animations using SDL and the C programming language.

I started learning to use SDL for basic graphics programs. One of my first goals was trying to figure out how to draw regular polygons. However there is no built in way to do such things. By combining the base SDL library with SDL_gfx, I was able to draw filled polygons the way that I like. However the code required to get the X and Y coordinates of each corner of the polygon was written by me.

There are many source files in this project and they all have their unique purpose and are in constant change as I fix bugs and add new functions which do new things.

One of my latest additions was using SDL_ttf to write text onto the screen with my custom messages.

Because my code is a bit disorganized it might be difficult if not impossible for others to figure out how to use it unless I write an official documentation.

Features

  • SDL
  • polygons

Project Samples

Project Activity

See All Activity >

Follow SDL polygon demos

SDL polygon demos Web Site

Other Useful Business Software
$300 Free Credits to Build on Google Cloud Icon
$300 Free Credits to Build on Google Cloud

New to Google Cloud? Get $300 in credits to explore Compute Engine, BigQuery, Cloud Run, Gemini Enterprise Agent Platform, and more.

Start your next project with $300 in free Google Cloud credit. Spin up VMs, run containers, query petabytes in BigQuery, or build agents with Gemini Enterprise Agent Platform. Once your credits are used, keep building with 20+ always-free tier products including Compute Engine, Cloud Storage, GKE, and Cloud Run functions. No commitment required—just sign up and start building.
Claim $300 Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SDL polygon demos!

Additional Project Details

Registered

2019-03-04