Skip to content

Instantly share code, notes, and snippets.

View xeekworx's full-sized avatar
💭
Looking for open-source tool ideas.

Xeek xeekworx

💭
Looking for open-source tool ideas.
View GitHub Profile
@xeekworx
xeekworx / sdl_image_move_example.cpp
Last active March 1, 2018 02:17
SDL Renderer + A Moving Image
#include <SDL.h>
#include <iostream>
#include <sstream>
#include <string>
int main(int argc, char *argv[])
{
int screen_width = 1024, screen_height = 768;
SDL_Window* main_window = NULL;
SDL_Renderer* renderer = NULL;
@xeekworx
xeekworx / sdl_opengl_example.cpp
Created February 28, 2018 15:14
SDL + GLAD + OpenGL + Example in C++
#include <SDL.h>
#include <glad\glad.h>
#include <string>
#include <iostream>
#include <iomanip> // for setw
int main(int argc, char *argv[])
{
int screen_width = 640, screen_height = 480;
SDL_Window * main_window = nullptr;
@xeekworx
xeekworx / sdl_nanovg_example.cpp
Last active April 19, 2025 05:00
SDL + GLAD + OpenGL + NanoVG Example in C++
#include <SDL.h>
#include <glad\glad.h>
#include <nanovg.h>
#define NANOVG_GL3_IMPLEMENTATION
#include <nanovg_gl.h>
#include <nanovg_gl_utils.h> // For framebuffer utilities not shown in this code
#include <string>
#include <iostream>
#include <iomanip> // for setw