Reference - https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get install libgtest-dev
sudo apt-get install cmake # install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
#define _USE_MATH_DEFINES | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <assert.h> | |
#include "glad/glad.h" | |
#include "GLFW/glfw3.h" | |
#define LIGHTMAPPER_IMPLEMENTATION | |
#define LM_DEBUG_INTERPOLATION |
I want to build a version of assimp that just has GLTF import support, but the generated solution files aren't completely untangled, | |
so the smallest I can get is: | |
SET(ASSIMP_BUILD_ALL_IMPORTERS_BY_DEFAULT FALSE) | |
SET(ASSIMP_BUILD_GLTF_IMPORTER TRUE) | |
SET(ASSIMP_BUILD_M3D_IMPORTER TRUE) | |
SET(ASSIMP_BUILD_M3D_EXPORTER TRUE) | |
SET(ASSIMP_BUILD_ASSBIN_EXPORTER TRUE) | |
SET(ASSIMP_BUILD_ASSXML_EXPORTER TRUE) |
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse |
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0) | |
PROJECT(em_gl VERSION 0.1.0) | |
LINK_DIRECTORIES( | |
$ENV{VCPKG_ROOT}/installed/x64-windows/lib | |
) | |
FILE(GLOB SRC | |
*.cpp | |
*.h |
Reference - https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/
sudo apt-get install libgtest-dev
sudo apt-get install cmake # install cmake
cd /usr/src/gtest
sudo cmake CMakeLists.txt
// | |
// Simple listener.c program for UDP multicast | |
// | |
// Adapted from: | |
// http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html | |
// | |
// Changes: | |
// * Compiles for Windows as well as Linux | |
// * Takes the port and group on the command line | |
// |
import pygame | |
pygame.init() #Start Pygame | |
screen = pygame.display.set_mode((640,480)) #Start the screen | |
running = True | |
while running: | |
for event in pygame.event.get(): | |
if event.type == pygame.QUIT: #The user closed the window! | |
running = False #Stop running |
import sys | |
import pygame | |
from pygame.locals import * | |
pygame.init() | |
fps = 60 | |
fpsClock = pygame.time.Clock() | |
if (typeof console != "undefined") | |
if (typeof console.log != 'undefined') | |
console.olog = console.log; | |
else | |
console.olog = function() {}; | |
console.log = function(message) { | |
console.olog(message); | |
$('#debugDiv').append('<p>' + message + '</p>'); | |
}; |
/* | |
hellox -- Hello world with Xlib. | |
$(CC) -o hellox hellox.c -lX11 -L/usr/X11/lib | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |