Skip to content

Instantly share code, notes, and snippets.

View handicraftsman's full-sized avatar
🖥️

Nickolay handicraftsman

🖥️
View GitHub Profile
@daog1
daog1 / CMakeLists.txt
Created August 31, 2019 00:28 — forked from yulon/CMakeLists.txt
CMakeLists.txt with using Vcpkg
cmake_minimum_required(VERSION 3.0)
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
CACHE STRING "")
endif()
if(NOT DEFINED VCPKG_TARGET_TRIPLET)
string(FIND ${CMAKE_GENERATOR} "Visual Studio" VISUAL_STUDIO_IN_CMAKE_GENERATOR)
#:kivy 1.8.0
<Root>:
orientation: "vertical"
Button:
text: "Start GTK thread" if not app.gtk_started else "Stop GTK thread"
on_release: app.start_gtk_thread()
@williewillus
williewillus / primer.md
Last active April 22, 2024 15:29
1.13/1.14 update primer

This primer is licensed under CC0, do whatever you want.

BUT do note that this can be updated, so leave a link here so readers can see the updated information themselves.

1.13 and 1.14 are lumped together in this doc, you're on your own if you just want to go to 1.13 and not 1.14, for some reason.

1.15 stuff: https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e

Things in Advance

  • ResourceLocation now throw on non-snake-case names instead of silently lowercasing for you, so you probably should go and change all those string constants now. More precisely, domains must only contain alphanumeric lowercase, underscore (_), dash (-), or dot (.). Paths have the same restrictions, but can also contain forward slashes (/).
@fulezi
fulezi / ImGuiHandler.cpp
Last active March 25, 2024 02:47 — forked from hb3p8/ImGuiHandler.cpp
ImGui OpenSceneGraph wrapper
#include "ImGuiHandler.hpp"
#include "imgui/imgui.h"
#include <iostream>
#include <osgUtil/GLObjectsVisitor>
#include <osgUtil/SceneView>
#include <osgUtil/UpdateVisitor>
//You can also change type of this function to any other (if you need)
class ClassMisc {
public static string[] str_arr_cmb(string[] a, string[] b){
string[] output = {};
int cnt = 0;
foreach(string i in a){
output += a[cnt];
cnt++;