This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <string.h> | |
#include <iostream> | |
#include <sys/types.h> /* See NOTES */ | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export BBPATH=`pwd`/build:`pwd`/openembedded | |
export PATH=`pwd`/bitbake/bin:$PATH | |
echo "OE environment is ready" | |
# | |
# OpenEmbedded local configuration file (sample) | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 237f2dd709e710fbe57413d847bd304f463a6a2a Mon Sep 17 00:00:00 2001 | |
From: Michal Stawinski <[email protected]> | |
Date: Sun, 4 Nov 2012 09:20:21 +0100 | |
Subject: [PATCH] Testing of degbugdraw | |
--- | |
project.properties | 1 + | |
.../examples/PhysicsRevoluteJointExample.java | 75 ++++++++++++++++++++ | |
2 files changed, 76 insertions(+) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 37ec12de2624870eca58cbf60860445e4c478de3 Mon Sep 17 00:00:00 2001 | |
From: Michal Stawinski <[email protected]> | |
Date: Sun, 4 Nov 2012 09:20:21 +0100 | |
Subject: [PATCH] Testing of degbugdraw on GLES2 | |
--- | |
project.properties | 1 + | |
.../examples/PhysicsRevoluteJointExample.java | 75 ++++++++++++++++++++ | |
2 files changed, 76 insertions(+) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From bf83c5e8e3b656795c85d0c321e72917900937ad Mon Sep 17 00:00:00 2001 | |
From: Michal Stawinski <[email protected]> | |
Date: Sun, 4 Nov 2012 09:20:21 +0100 | |
Subject: [PATCH] Testing of OLD-and-BROKEN degbugdraw on GLES2 | |
--- | |
project.properties | 1 + | |
.../examples/PhysicsRevoluteJointExample.java | 75 ++++++++++++++++++++ | |
2 files changed, 76 insertions(+) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.nazgee.features.utils; | |
import org.andengine.entity.IEntity; | |
public class Positioner { | |
// =========================================================== | |
// Constants | |
// =========================================================== | |
// =========================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void addThisDeviceAsTestDevice(AdRequest pAdRequest) { | |
String android_id = Settings.Secure.getString(GameResources.ACTIVITY.getContentResolver(), Settings.Secure.ANDROID_ID); | |
String deviceId = md5(android_id).toUpperCase(); | |
pAdRequest.addTestDevice(deviceId); | |
boolean isTestDevice = pAdRequest.isTestDevice(GameResources.ACTIVITY); | |
if (!isTestDevice) { | |
throw new RuntimeException("Failed to use test Ads :("); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.nazgee.features.utils; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import org.andengine.entity.text.Text; | |
import org.andengine.entity.text.vbo.HighPerformanceTextVertexBufferObject; | |
import org.andengine.opengl.font.IFont; | |
import org.andengine.opengl.font.Letter; | |
import org.andengine.util.adt.color.Color; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Note that I wrote this in java in Processing - paste this GIST into processing to see it in action. | |
// It is not the most elegant thing ever but it does deal with end caps and ribbon loops and the like. | |
// If you port this over to say objective-c / opengl / c etc - you may need to deal with polygon direction | |
// here is a snapshot of it running : http://www.flickr.com/photos/anselmhook/6507471719/in/photostream | |
int nvertices = 0; | |
float[] vertexpool = new float[3000]; | |
float x1,x2,y1,y2; | |
void intersect(int kind, float x0, float y0, float x1,float y1,float x2,float y2,float x3,float y3,float x4,float y4) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static struct gbm_bo *gbm_kms_bo_create(struct gbm_device *gbm, | |
uint32_t width, uint32_t height, | |
uint32_t format, uint32_t usage) | |
{ | |
struct gbm_kms_device *dev = (struct gbm_kms_device*)gbm; | |
struct gbm_kms_bo *bo; | |
unsigned attr[] = { | |
KMS_BO_TYPE, KMS_BO_TYPE_SCANOUT_X8R8G8B8, | |
KMS_WIDTH, 0, | |
KMS_HEIGHT, 0, |
OlderNewer