Skip to content

Instantly share code, notes, and snippets.

View forestsen's full-sized avatar
馃挱
I may be slow to respond.

Haipeng Wang forestsen

馃挱
I may be slow to respond.
View GitHub Profile
@royshil
royshil / NRUBSOpenCV.cpp
Last active October 7, 2019 12:21
Simple 2D NURBS renderer for OpenCV, reading a DXF file.
/*
* Simple 2D NURBS renderer for OpenCV, reading DXF files
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Roy Shilkrot
*
* Updated: Nov 2016
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@dlivingstone
dlivingstone / main.cpp
Created November 7, 2011 21:42
OpenGL with GLM & SDL: A simple program to demonstrate modern OpenGL programming (compatible with OpenGL 3.0 and later) CC-BY-SA Daniel Livingstone
#include <iostream>
#include <fstream>
// Windows specific: Uncomment the following line to open a console window for debug output
#if _DEBUG
#pragma comment(linker, "/subsystem:\"console\" /entry:\"WinMainCRTStartup\"")
#endif
// Simple OpenGL GLM/SDL demo
// Renders a rotating pyramid, showing 3 of 4 sides (allowing back faces to be seen)