Skip to content

Instantly share code, notes, and snippets.

View alanjfs's full-sized avatar
💭
The villain

Alan Jefferson alanjfs

💭
The villain
View GitHub Profile
@alanjfs
alanjfs / README.md
Last active July 15, 2020 12:03
Magnum & Emscripten
@alanjfs
alanjfs / CMakeLists.txt
Last active July 9, 2020 15:26
Magnum with ImGUI
cmake_minimum_required(VERSION 3.4)
project(MyApplication)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})
set(CMAKE_PREFIX_PATH "${PROJECT_SOURCE_DIR}/SDL2-2.0.10" ${CMAKE_PREFIX_PATH})
set(CMAKE_PREFIX_PATH "${PROJECT_SOURCE_DIR}/imgui" ${CMAKE_PREFIX_PATH})
set(WITH_SDL2APPLICATION ON CACHE BOOL "" FORCE)
add_subdirectory(corrade EXCLUDE_FROM_ALL)
@alanjfs
alanjfs / CMakeLists.txt
Last active October 24, 2019 07:35
Magnum Python Quickstart
cmake_minimum_required(VERSION 3.4)
project(MyApplication)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH})
set(CMAKE_PREFIX_PATH "${PROJECT_SOURCE_DIR}/SDL2-2.0.10" ${CMAKE_PREFIX_PATH})
# Add Corrade as a subproject
add_subdirectory(corrade EXCLUDE_FROM_ALL)
# Add Magnum as a subproject, enable Sdl2Application
@alanjfs
alanjfs / CMakeLists.txt
Last active October 16, 2019 08:57
N-Body with Magnum and EnTT
cmake_minimum_required(VERSION 3.1)
project(nbody)
# Add module path in case this is project root
if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../modules/" ${CMAKE_MODULE_PATH})
endif()
find_package(Magnum REQUIRED
@alanjfs
alanjfs / CMakeLists.txt
Last active October 16, 2019 08:58
Pong with EnTT and Magnum
cmake_minimum_required(VERSION 3.1)
project(pong)
# Add module path in case this is project root
if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../modules/" ${CMAKE_MODULE_PATH})
endif()
find_package(Magnum REQUIRED
@alanjfs
alanjfs / CMakeLists.txt
Created October 5, 2019 18:47
ECSY's documentation example, implemented with Magnum and EnTT
cmake_minimum_required(VERSION 3.1)
project(ECSY1)
# Add module path in case this is project root
if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../modules/" ${CMAKE_MODULE_PATH})
endif()
find_package(Magnum REQUIRED
@alanjfs
alanjfs / SnippetLoadSaveCollection.cpp
Last active February 4, 2019 09:21
Snippet Load and Save Collection
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of NVIDIA CORPORATION nor the names of its
@alanjfs
alanjfs / repx_reference.md
Created February 3, 2019 10:24
RepX Reference Documentation
  • From Collada PhysX plug-in for Maya - ref
Tag Type Description
Actor0
Actor1
ActorFlags
ActorLocalPose
Actors
Angular