Skip to content

Instantly share code, notes, and snippets.

View dannycalleri's full-sized avatar
🤘

Danny Calleri dannycalleri

🤘
View GitHub Profile
@dannycalleri
dannycalleri / game-ios.md
Last active May 28, 2016 07:53
#blog [game development] New game announced

A new arcade game is coming for iOS.

@dannycalleri
dannycalleri / post.md
Last active May 27, 2016 14:39
#blog [computer science, api, php] Blog post

Heading

This is a new blog post for Battlelog

@dannycalleri
dannycalleri / snippets.cson
Created August 11, 2015 11:48
Atom snippets file
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
{
"directory": "src/_lib",
"json": "bower.json"
}
@dannycalleri
dannycalleri / sprite_shader.frag
Created November 30, 2012 12:22
OpenGL ES Vertex and Fragment Shaders for 2D Sprites rendering
//incoming values from the vertex shader stage.
//if the vertices of a primitive have different values, they are interpolated!
varying vec2 v_uv;
uniform sampler2D texture;
// setting float precision
precision mediump float;
void main()
@dannycalleri
dannycalleri / Lesson02.cpp
Created November 30, 2012 12:02
Danny Calleri's version of NeHe's iOS OpenGL Lesson02
#include "Lesson02.h"
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>
#include <vector>
Lesson02::Lesson02()
: shader(NULL),
texture(NULL),
@dannycalleri
dannycalleri / Lesson02.h
Created November 30, 2012 11:50
Danny Calleri's version of NeHe's iOS OpenGL Lesson02
#ifndef _LESSON02_H_
#define _LESSON02_H_
#include <vector>
#include "Lesson.h"
#include "Shader.h"
#include "Texture.h"
#include "Sprite.h"
class Lesson02 : public Lesson