Skip to content

Instantly share code, notes, and snippets.

View stungeye's full-sized avatar

Kyle Geske stungeye

View GitHub Profile
@stungeye
stungeye / main.cpp
Created October 8, 2025 19:18
Polymorphic Objects in C++ with Virtual Abstract Classes
#include "raylib.h"
#include <memory> // Smart Pointers
#include <vector> // std::vector
#include <iostream>
// ABSTRACT BASE CLASS (Shape)
class Shape {
protected:
Vector2 position;
Color color;
@stungeye
stungeye / main.cpp
Last active September 15, 2025 18:19
Example Raylib C++ Control Panel with Two Interaction Widgets
#include "raylib.h"
#include <cmath>
#include <string>
void DrawToggle(const Font& font, const Vector2& lampACentre, const std::string& labelA, const Vector2& lampBCentre, const std::string& labelB, float lampRadius, bool status) {
DrawTextEx(font, labelA.c_str(), {lampACentre.x - 5, lampACentre.y - 45}, 20, 1.0f, DARKGRAY);
DrawTextEx(font, labelB.c_str(), {lampBCentre.x - 5, lampBCentre.y - 45}, 20, 1.0f, DARKGRAY);
DrawCircleV(lampACentre, lampRadius + 4.0f, DARKGRAY);
DrawCircleV(lampACentre, lampRadius, !status ? ORANGE : GRAY);
@stungeye
stungeye / knight.ply
Last active April 11, 2025 05:06
Magicavoxel Sample .ply Files: Knight and Zombie
ply
format ascii 1.0
comment : MagicaVoxel @ Ephtracy
element vertex 2920
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
@stungeye
stungeye / index.md
Created October 17, 2024 01:45
Test of Markdown

Git's Markup of Conflicted Files

Git uses special markers to indicate the start and end of the conflicted area:

<<<<<<< HEAD

and:

@stungeye
stungeye / ViveOpenXRGame_2.log
Created April 17, 2023 17:31
ViveOpenXRGame UE5.1 Crash Log with Vive Cosmos Elite (OpenXR)
Log file open, 04/17/23 12:22:26
LogWindows: Failed to load 'aqProf.dll' (GetLastError=0)
LogWindows: File 'aqProf.dll' does not exist
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64).
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=0)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=0)
LogWindows: File 'VtuneApi32e.dll' does not exist
LogWindows: Started CrashReportClient (pid=24412)
LogWindows: Custom abort handler registered for crash reporting.
@stungeye
stungeye / FirstVR_2.log
Created April 17, 2023 17:27
Unreal Engine UE5.1 VR Template Crash Log with Vive Cosmos Elite (OpenXR)
Log file open, 04/17/23 11:52:31
LogWindows: Failed to load 'aqProf.dll' (GetLastError=0)
LogWindows: File 'aqProf.dll' does not exist
LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64).
LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=0)
LogWindows: File 'VtuneApi.dll' does not exist
LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=0)
LogWindows: File 'VtuneApi32e.dll' does not exist
LogWindows: Started CrashReportClient (pid=27956)
LogWindows: Custom abort handler registered for crash reporting.
@stungeye
stungeye / .gitignore
Created March 6, 2023 23:06
My Latest .gitignore file for Unreal Engine
# Visual Studio 2015 user specific files
.vs/
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
@stungeye
stungeye / main.cpp
Last active February 28, 2023 15:55
Base and Derived Types in C++ with Polymorphic Functions and Collections using Pointers
#include <iostream> // std::cout
#include <string> // std::string
#include <vector> // std::vector
#include <memory> // std::unique_ptr, std::make_unique
class Animal {
// Base Class - Eventually Abstract
std::string name;
protected:
@stungeye
stungeye / main.cpp
Last active February 13, 2023 17:40
Base and Derived CPP Classes
#include <iostream>
class Base {
protected:
int value; // Derived class will have access.
public:
Base(int value) : value{value} {
std::cout << "Base Constructor\n";
}
@stungeye
stungeye / ofApp.cpp
Created February 2, 2023 21:30
Detecting Keys and Keycodes in Openframeworks
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofAddListener(ofGetWindowPtr()->events().keyPressed, this,
&ofApp::keycodePressed);
}
//--------------------------------------------------------------
void ofApp::update(){