Skip to content

Commit

Permalink
new file: build/proj_mac/AppDelegate.h
Browse files Browse the repository at this point in the history
	new file:   build/proj_mac/AppDelegate.mm
	new file:   build/proj_mac/Contents.json
	new file:   build/proj_mac/Info.plist
	new file:   build/proj_mac/MainMenu.xib
	new file:   build/proj_mac/OpenGLView.h
	new file:   build/proj_mac/OpenGLView.mm
	new file:   build/proj_mac/main.m
	new file:   build/proj_mac/proj_mac.xcodeproj/project.pbxproj
	new file:   build/proj_mac/proj_mac.xcodeproj/project.xcworkspace/contents.xcworkspacedata
	new file:   build/proj_mac/proj_mac.xcodeproj/project.xcworkspace/xcuserdata/reuben.xcuserdatad/UserInterfaceState.xcuserstate
	new file:   build/proj_mac/proj_mac.xcodeproj/xcuserdata/reuben.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
	new file:   build/proj_mac/proj_mac.xcodeproj/xcuserdata/reuben.xcuserdatad/xcschemes/proj_mac.xcscheme
	new file:   build/proj_mac/proj_mac.xcodeproj/xcuserdata/reuben.xcuserdatad/xcschemes/xcschememanagement.plist
	new file:   external/kazmath/GL/mat4stack.c
	new file:   external/kazmath/GL/mat4stack.h
	new file:   external/kazmath/GL/matrix.c
	new file:   external/kazmath/GL/matrix.h
	new file:   external/kazmath/aabb.c
	new file:   external/kazmath/aabb.h
	new file:   external/kazmath/kazmath.h
	new file:   external/kazmath/mat3.c
	new file:   external/kazmath/mat3.h
	new file:   external/kazmath/mat4.c
	new file:   external/kazmath/mat4.h
	new file:   external/kazmath/plane.c
	new file:   external/kazmath/plane.h
	new file:   external/kazmath/quaternion.c
	new file:   external/kazmath/quaternion.h
	new file:   external/kazmath/ray2.c
	new file:   external/kazmath/ray2.h
	new file:   external/kazmath/utility.c
	new file:   external/kazmath/utility.h
	new file:   external/kazmath/vec2.c
	new file:   external/kazmath/vec2.h
	new file:   external/kazmath/vec3.c
	new file:   external/kazmath/vec3.h
	new file:   external/kazmath/vec4.c
	new file:   external/kazmath/vec4.h
	new file:   sample/sample_ocean/OceanDelegate.h
	new file:   tiny3d_main/RenderQueueGroup.cpp
	new file:   tiny3d_main/RenderQueueGroup.h
	new file:   tiny3d_main/RenderSystem.cpp
	new file:   tiny3d_main/RenderSystem.h
	new file:   tiny3d_main/TinyCamera.cpp
	new file:   tiny3d_main/TinyCamera.h
	new file:   tiny3d_main/TinyDelegate.cpp
	new file:   tiny3d_main/TinyDelegate.h
	new file:   tiny3d_main/TinyEntity.cpp
	new file:   tiny3d_main/TinyEntity.h
	new file:   tiny3d_main/TinyGPUProgram.cpp
	new file:   tiny3d_main/TinyGPUProgram.h
	new file:   tiny3d_main/TinyGPUProgramManager.cpp
	new file:   tiny3d_main/TinyGPUProgramManager.h
	new file:   tiny3d_main/TinyInputManager.cpp
	new file:   tiny3d_main/TinyInputManager.h
	new file:   tiny3d_main/TinyInputObject.cpp
	new file:   tiny3d_main/TinyInputObject.h
	new file:   tiny3d_main/TinyKeyboard.cpp
	new file:   tiny3d_main/TinyKeyboard.h
	new file:   tiny3d_main/TinyLight.cpp
	new file:   tiny3d_main/TinyLight.h
	new file:   tiny3d_main/TinyMaterial.cpp
	new file:   tiny3d_main/TinyMaterial.h
	new file:   tiny3d_main/TinyMath.cpp
	new file:   tiny3d_main/TinyMath.h
	new file:   tiny3d_main/TinyMesh.cpp
	new file:   tiny3d_main/TinyMesh.h
	new file:   tiny3d_main/TinyMouse.cpp
	new file:   tiny3d_main/TinyMouse.h
	new file:   tiny3d_main/TinyMovableObject.cpp
	new file:   tiny3d_main/TinyMovableObject.h
	new file:   tiny3d_main/TinyObject.cpp
	new file:   tiny3d_main/TinyObject.h
	new file:   tiny3d_main/TinyRenderQueue.cpp
	new file:   tiny3d_main/TinyRenderQueue.h
	new file:   tiny3d_main/TinyRenderQueueSortingQrouping.cpp
	new file:   tiny3d_main/TinyRenderQueueSortingQrouping.h
	new file:   tiny3d_main/TinyRenderSystem.cpp
	new file:   tiny3d_main/TinyRenderSystem.h
	new file:   tiny3d_main/TinyRenderTarget.cpp
	new file:   tiny3d_main/TinyRenderTarget.h
	new file:   tiny3d_main/TinyRenderTexture.cpp
	new file:   tiny3d_main/TinyRenderTexture.h
	new file:   tiny3d_main/TinyRenderWindow.cpp
	new file:   tiny3d_main/TinyRenderWindow.h
	new file:   tiny3d_main/TinyRenderable.cpp
	new file:   tiny3d_main/TinyRenderable.h
	new file:   tiny3d_main/TinyResourceManager.cpp
	new file:   tiny3d_main/TinyResourceManager.h
	new file:   tiny3d_main/TinyRoot.cpp
	new file:   tiny3d_main/TinyRoot.h
	new file:   tiny3d_main/TinySceneManager.cpp
	new file:   tiny3d_main/TinySceneManager.h
	new file:   tiny3d_main/TinySceneNode.cpp
	new file:   tiny3d_main/TinySceneNode.h
	new file:   tiny3d_main/TinySchedulerManager.cpp
	new file:   tiny3d_main/TinySchedulerManager.h
	new file:   tiny3d_main/TinyTexture.cpp
	new file:   tiny3d_main/TinyTexture.h
	new file:   tiny3d_main/TinyTextureManager.cpp
	new file:   tiny3d_main/TinyTextureManager.h
	new file:   tiny3d_main/TinyViewPort.cpp
	new file:   tiny3d_main/TinyViewPort.h
  • Loading branch information
reuben1990 committed Feb 4, 2015
0 parents commit 1fefea0
Show file tree
Hide file tree
Showing 104 changed files with 8,256 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build/proj_mac/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// proj_mac
//
// Created by reuben chao on 2/2/15.
// Copyright (c) 2015 reuben chao. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface AppDelegate : NSObject <NSApplicationDelegate>

@property (weak) IBOutlet NSWindow *window;

@end
42 changes: 42 additions & 0 deletions build/proj_mac/AppDelegate.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//
// AppDelegate.m
// proj_mac
//
// Created by reuben chao on 2/2/15.
// Copyright (c) 2015 reuben chao. All rights reserved.
//

#import "AppDelegate.h"
#import "OpenGLView.h"


@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
NSOpenGLPixelFormatAttribute attributes[] = {
NSOpenGLPFAColorSize, 32,
NSOpenGLPFADepthSize, 16,
NSOpenGLPFAStencilSize, 8,
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAAccelerated,
NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
0
};

NSOpenGLPixelFormat *pixelFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes];
if (pixelFormat == nil) {
NSLog(@"Faild create pixel format");
return;
}

NSOpenGLView *view = [[OpenGLView alloc] initWithFrame:self.window.frame pixelFormat:pixelFormat];

[self.window setContentView:view];
}

- (void)applicationWillTerminate:(NSNotification *)aNotification {
// Insert code here to tear down your application
}

@end
58 changes: 58 additions & 0 deletions build/proj_mac/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"images" : [
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
34 changes: 34 additions & 0 deletions build/proj_mac/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.reuben.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 reuben chao. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
680 changes: 680 additions & 0 deletions build/proj_mac/MainMenu.xib

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions build/proj_mac/OpenGLView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// TinyOpenGLView.h
// proj_mac
//
// Created by reuben chao on 2/2/15.
// Copyright (c) 2015 reuben chao. All rights reserved.
//

#ifndef proj_mac_TinyOpenGLView_h
#define proj_mac_TinyOpenGLView_h

#import <OpenGL/gl.h>
#import <Cocoa/Cocoa.h>
#import "TinyDelegate.h"
#include "TinyMouse.h"
#include "TinyKeyboard.h"

@interface OpenGLView : NSOpenGLView {
NSTimer *mTimer;
Tiny::TinyMouse *mMouse;
Tiny::TinyKeyboard *mKeyBoard;
};

- (void)visit:(NSTimer*)timer;

@end



#endif
Loading

0 comments on commit 1fefea0

Please sign in to comment.