Skip to content

Commit

Permalink
fix link error
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben1990 committed Feb 21, 2015
1 parent 2b2c645 commit 896e809
Show file tree
Hide file tree
Showing 63 changed files with 995 additions and 247 deletions.
2 changes: 1 addition & 1 deletion build/proj_mac/OpenGLView.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef proj_mac_TinyOpenGLView_h
#define proj_mac_TinyOpenGLView_h

#import <OpenGL/gl.h>
#import <OpenGL/gl3.h>
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#include "TinyMouse.h"
Expand Down
2 changes: 1 addition & 1 deletion build/proj_mac/OpenGLView.mm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
//
// OpenGLView.m
// proj_mac
//
Expand Down
2 changes: 1 addition & 1 deletion build/proj_mac/TinyMacRenderWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Tiny
TinyMacRenderWindow(OpenGLView* glView);
~TinyMacRenderWindow();
virtual void preRender();
virtual void swapBuffers();
virtual void swapBuffer();
protected:
OpenGLView* mGLView;
};
Expand Down
3 changes: 2 additions & 1 deletion build/proj_mac/TinyMacRenderWindow.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@

}

void TinyMacRenderWindow::swapBuffers()
void TinyMacRenderWindow::swapBuffer()
{
TINYLOG("swap buffer");
[[mGLView openGLContext] flushBuffer];
}

Expand Down
5 changes: 2 additions & 3 deletions build/proj_mac/TinyResourceManager_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
// Copyright (c) 2015 reuben chao. All rights reserved.
//

#include <stdio.h>
#include "TinyResourceManager.h"
#include <cstdio>
#import <Foundation/Foundation.h>
#include "TinyResourceManager.h"
#include "TinyPlatform.h"

namespace Tiny
Expand All @@ -32,7 +32,6 @@
uint8* bytes = (uint8*)[fileData bytes];
memcpy(*data, bytes, dataLength);
*data[dataLength] = '\0';
free(fileData);
}
}
}
4 changes: 2 additions & 2 deletions build/proj_mac/proj_mac.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@
"$(PROJECT_DIR)/../../sample",
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = proj_mac/Info.plist;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -663,7 +663,7 @@
"$(PROJECT_DIR)/../../sample",
"$(PROJECT_DIR)",
);
INFOPLIST_FILE = proj_mac/Info.plist;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down
Binary file not shown.
Loading

0 comments on commit 896e809

Please sign in to comment.