Skip to content

Instantly share code, notes, and snippets.

View gchatelet's full-sized avatar

Guillaume Chatelet gchatelet

  • Google
  • Paris, France
View GitHub Profile
struct VertexPosUv0 {
glm::vec3 position;
glm::vec2 uv0;
VertexPosUv0(glm::vec3 pos) :
position(pos) {
}
VertexPosUv0(glm::vec3 pos, glm::vec2 uv0) :
position(pos), uv0(uv0) {
}
};
@gchatelet
gchatelet / gist:1330474
Created November 1, 2011 13:17
NULL definition within stddef.h
/* A null pointer constant. */
#if defined (_STDDEF_H) || defined (__need_NULL)
#undef NULL /* in case <stdio.h> has defined it. */
#ifdef __GNUG__
#define NULL __null
#else /* G++ */
#ifndef __cplusplus
#define NULL ((void *)0)
#else /* C++ */
@gchatelet
gchatelet / gist:1330473
Created November 1, 2011 13:17
NULL definition within stddef.h
/* A null pointer constant. */
#if defined (_STDDEF_H) || defined (__need_NULL)
#undef NULL /* in case <stdio.h> has defined it. */
#ifdef __GNUG__
#define NULL __null
#else /* G++ */
#ifndef __cplusplus
#define NULL ((void *)0)
#else /* C++ */