Skip to content

Instantly share code, notes, and snippets.

//Copyright © 2010 - 2024 Manoj M J and Oskar Schramm
//All Rights Reserved
[Game Development]
[Foundations]
[TOC]
Introduction
Platforms
Programming
@mmj-the-fighter
mmj-the-fighter / atm.cpp
Last active July 13, 2022 05:41
Automated Teller Machine sim
#include <iostream>
#include <list>
#include <algorithm>
using namespace std;
struct MoneyBundle
{
int denomination;
int count;
@mmj-the-fighter
mmj-the-fighter / interpolator.hpp
Last active April 16, 2025 11:07
Linear Interpolator C++ class for graphics programming
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
#include <string>
#include <map>
#include <functional>
#include <vector>
#include <iostream>
#include <set>
#include <algorithm>
using Message = std::string;
using Topic = std::string;
@mmj-the-fighter
mmj-the-fighter / readme.txt
Last active January 28, 2025 03:46
useful for software rendering techniques.
SDL3 Fast Pixel Manipulation Example
************************************
This project demonstrates dynamic Texture Updates
*************************************************
Updates a streaming texture on every frame using either locked or lockless pixel manipulation techniques.
Performance Analysis
********************
@mmj-the-fighter
mmj-the-fighter / profiler.hpp
Last active August 6, 2025 16:35
simple profiler which supports nested calls
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
//1. helloworld
fn nod() {
println!("hello, world!");
}
//2. printing
fn printing() {
let num: i32 = 5;
let pi: f32 = 3.141516;
let str_pi: String = format!("{:.2}", pi);