Skip to content

Commit 0c5e642

Browse files
committed
First Snow Leopard build
0 parents  commit 0c5e642

25 files changed

+10336
-0
lines changed

.bzrignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build
2+
**/.DS_Store

English.lproj/Matrix.nib/designable.nib

Lines changed: 2255 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
20.1 KB
Binary file not shown.

GLUtils.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#import <Foundation/Foundation.h>
2+
#import <OpenGL/gl.h>
3+
4+
// This file contains a handy GL error checking function adapted from
5+
// the one found in the Apple OpenGL sample code.
6+
7+
// Note that __private_extern__ protects CheckGLError from conflicting
8+
// with other screen saver modules, preference panes, frameworks,
9+
// and other bundles that get loaded into the System Preferences
10+
// application, and which have quite likely used the same function.
11+
__private_extern__ void CheckGLError(const char *func, const char *note);
12+
__private_extern__ void LogError(const char *func, const char *note);

GLUtils.m

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#import <OpenGL/glu.h>
2+
#import "GLUtils.h"
3+
4+
// The main change between this function and the Apple version is that
5+
// this one counts the number of errors, and silently ignores errors
6+
// after the first three.
7+
// This is because some users discovered that RedPill would report GL
8+
// errors *even when everything worked fine*, and their system log would
9+
// get filled up with 30 lines of error text every second until it ate
10+
// all available disk space. Ouch!
11+
12+
__private_extern__ void CheckGLError(const char *func, const char *note)
13+
{
14+
static int errcount = 0;
15+
16+
GLenum error = glGetError();
17+
if (error)
18+
{
19+
if (errcount < 4) {
20+
errcount += 1;
21+
NSLog(@"%s.%s: %s (%d)", func, note, gluErrorString(error), error);
22+
}
23+
}
24+
}
25+
26+
__private_extern__ void LogError(const char *func, const char *note)
27+
{
28+
static int logcount = 0;
29+
30+
if (logcount < 4) {
31+
logcount += 1;
32+
NSLog(@"%s: %s", func, note);
33+
}
34+
}

Glyphs.png

41.8 KB
Loading

Info-RedPill.plist

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleExecutable</key>
8+
<string>Red Pill</string>
9+
<key>CFBundleGetInfoString</key>
10+
<string>Version 1.5.0</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>com.ath0.redpill</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>Red Pill</string>
17+
<key>CFBundlePackageType</key>
18+
<string>BNDL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.5.0</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleVersion</key>
24+
<string>1.5.0</string>
25+
<key>NSPrincipalClass</key>
26+
<string>MatrixView</string>
27+
</dict>
28+
</plist>

0 commit comments

Comments
 (0)