Skip to content

Instantly share code, notes, and snippets.

View nikki93's full-sized avatar

Nikhilesh S nikki93

View GitHub Profile
@nikki93
nikki93 / polycode-master-osx10.9.patch
Created December 4, 2013 06:25
had to do this to get Polycode to build on OS X 10.9
diff --git a/Core/Contents/Include/PolyGlobals.h b/Core/Contents/Include/PolyGlobals.h
index 2a7aadc..58b81df 100755
--- a/Core/Contents/Include/PolyGlobals.h
+++ b/Core/Contents/Include/PolyGlobals.h
@@ -46,6 +46,7 @@ THE SOFTWARE.
#endif
#include <stdint.h>
+#include <stdlib.h>
diff -r 977b89b57b90 code/build/premake4.lua
--- a/code/build/premake4.lua Thu Dec 05 23:55:39 2013 -0500
+++ b/code/build/premake4.lua Fri Dec 06 06:06:42 2013 -0500
@@ -231,16 +231,16 @@
buildoptions
{
"-x c++",
- "-isysroot /Developer/SDKs/MacOSX10.6.sdk",
- "-mmacosx-version-min=10.6",
+ --"-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk",
#include "gfx.h"
#include <stdlib.h>
#include <stdio.h>
static void _compile_shader(GLuint shader, const char *filename)
{
char *file_contents, log[512];
long input_file_size;
FILE *input_file;
'use strict';
let React = require('react-native');
let {
Animated,
Image,
PanResponder,
StyleSheet,
View,
} = React;
/**
* Copyright 2015-present 650 Industries. All rights reserved.
*
* @providesModule GrowingTextInput
*/
import React, { PropTypes } from 'react';
import {
TextInput,
} from 'react-native';
/**
* Copyright 2015-present 650 Industries. All rights reserved.
*
* @providesModule GrowingTextInput
*/
import React, { PropTypes } from 'react';
import {
TextInput,
} from 'react-native';
/*
<p>This example shows how you can apply multiple light sources to a model</p>
*/
const regl = require('regl')()
const normals = require('angle-normals')
const mat4 = require('gl-mat4')
const bunny = require('bunny')
const teapot = require('teapot')
diff --git a/apps/gl-test/EXGLView.js b/apps/gl-test/EXGLView.js
index b2f9bd7..a12e422 100644
--- a/apps/gl-test/EXGLView.js
+++ b/apps/gl-test/EXGLView.js
@@ -64,11 +64,17 @@ const getGl = (exglContextId) => {
{ func: 'vertexAttrib2fv', arg: 1, type: Float32Array },
{ func: 'vertexAttrib3fv', arg: 1, type: Float32Array },
{ func: 'vertexAttrib4fv', arg: 1, type: Float32Array },
+ { func: 'bufferData', arg: 1, type: Int32Array },
+ { func: 'texImage2D', arg: 8, type: Int32Array },
'use strict';
import React from 'react';
import { GLView } from 'exponent';
export default class BasicScene extends React.Component {
static meta = {
description: 'PIXI Basic Scene',
* EXGL Unimplemented
** Buffer
*** isBuffer
** Texture
*** compressedTexImage2D
*** compressedTexSubImage2D
*** copyTexImage2D
*** copyTexSubImage2D
*** getTexParameter
*** isTexture