mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Initial import
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1101 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
d773b106be
commit
3a81c0cfab
Binary file not shown.
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
FilesToMacroExpand = (
|
||||||
|
"Info.plist",
|
||||||
|
);
|
||||||
|
Description = "This project builds a SFML application linked against the System, Window and Graphics packages, and written in C.";
|
||||||
|
}
|
@ -0,0 +1,235 @@
|
|||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 42;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
A0072ADE0F1D0EC500B4A594 /* csfml-system.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */; };
|
||||||
|
A0072ADF0F1D0EC500B4A594 /* csfml-window.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */; };
|
||||||
|
A0072AE00F1D0EC500B4A594 /* csfml-graphics.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CA0F07CFF2000AAC7B /* csfml-graphics.framework */; };
|
||||||
|
A01FB6C90F07CFCE000AAC7B /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = A01FB6C80F07CFCE000AAC7B /* main.c */; };
|
||||||
|
A01FB6CE0F07CFF2000AAC7B /* csfml-graphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CA0F07CFF2000AAC7B /* csfml-graphics.framework */; };
|
||||||
|
A01FB6CF0F07CFF2000AAC7B /* csfml-system.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */; };
|
||||||
|
A01FB6D00F07CFF2000AAC7B /* csfml-window.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
|
A0072AF00F1D0EDD00B4A594 /* Copy Frameworks */ = {
|
||||||
|
isa = PBXCopyFilesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
dstPath = "";
|
||||||
|
dstSubfolderSpec = 10;
|
||||||
|
files = (
|
||||||
|
A0072ADE0F1D0EC500B4A594 /* csfml-system.framework in Copy Frameworks */,
|
||||||
|
A0072ADF0F1D0EC500B4A594 /* csfml-window.framework in Copy Frameworks */,
|
||||||
|
A0072AE00F1D0EC500B4A594 /* csfml-graphics.framework in Copy Frameworks */,
|
||||||
|
);
|
||||||
|
name = "Copy Frameworks";
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
A01FB6A90F07CF6E000AAC7B /* «PROJECTNAME».app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "«PROJECTNAME».app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
A01FB6AC0F07CF6E000AAC7B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
A01FB6C80F07CFCE000AAC7B /* main.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
|
||||||
|
A01FB6CA0F07CFF2000AAC7B /* csfml-graphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "csfml-graphics.framework"; path = "/Library/Frameworks/csfml-graphics.framework"; sourceTree = "<absolute>"; };
|
||||||
|
A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "csfml-system.framework"; path = "/Library/Frameworks/csfml-system.framework"; sourceTree = "<absolute>"; };
|
||||||
|
A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "csfml-window.framework"; path = "/Library/Frameworks/csfml-window.framework"; sourceTree = "<absolute>"; };
|
||||||
|
A01FB6CD0F07CFF2000AAC7B /* SFML.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SFML.framework; path = /Library/Frameworks/SFML.framework; sourceTree = "<absolute>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
A01FB6A70F07CF6E000AAC7B /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A01FB6CE0F07CFF2000AAC7B /* csfml-graphics.framework in Frameworks */,
|
||||||
|
A01FB6CF0F07CFF2000AAC7B /* csfml-system.framework in Frameworks */,
|
||||||
|
A01FB6D00F07CFF2000AAC7B /* csfml-window.framework in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
A01FB69A0F07CF63000AAC7B = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6B20F07CF80000AAC7B /* Sources */,
|
||||||
|
A01FB6B10F07CF7C000AAC7B /* Resources */,
|
||||||
|
A01FB6B00F07CF75000AAC7B /* Frameworks */,
|
||||||
|
A01FB6AA0F07CF6E000AAC7B /* Products */,
|
||||||
|
);
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6AA0F07CF6E000AAC7B /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6A90F07CF6E000AAC7B /* «PROJECTNAME».app */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6B00F07CF75000AAC7B /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6CD0F07CFF2000AAC7B /* SFML.framework */,
|
||||||
|
A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */,
|
||||||
|
A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */,
|
||||||
|
A01FB6CA0F07CFF2000AAC7B /* csfml-graphics.framework */,
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6B10F07CF7C000AAC7B /* Resources */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6AC0F07CF6E000AAC7B /* Info.plist */,
|
||||||
|
);
|
||||||
|
name = Resources;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6B20F07CF80000AAC7B /* Sources */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6C80F07CFCE000AAC7B /* main.c */,
|
||||||
|
);
|
||||||
|
name = Sources;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
A01FB6A80F07CF6E000AAC7B /* «PROJECTNAME» */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = A01FB6AF0F07CF6F000AAC7B /* Build configuration list for PBXNativeTarget "«PROJECTNAME»" */;
|
||||||
|
buildPhases = (
|
||||||
|
A01FB6A50F07CF6E000AAC7B /* Resources */,
|
||||||
|
A01FB6A60F07CF6E000AAC7B /* Sources */,
|
||||||
|
A01FB6A70F07CF6E000AAC7B /* Frameworks */,
|
||||||
|
A0072AF00F1D0EDD00B4A594 /* Copy Frameworks */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = "«PROJECTNAME»";
|
||||||
|
productName = "«PROJECTNAME»";
|
||||||
|
productReference = A01FB6A90F07CF6E000AAC7B /* «PROJECTNAME».app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
A01FB69C0F07CF63000AAC7B /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
buildConfigurationList = A01FB69F0F07CF63000AAC7B /* Build configuration list for PBXProject "«PROJECTNAME»" */;
|
||||||
|
compatibilityVersion = "Xcode 2.4";
|
||||||
|
hasScannedForEncodings = 0;
|
||||||
|
mainGroup = A01FB69A0F07CF63000AAC7B;
|
||||||
|
productRefGroup = A01FB6AA0F07CF6E000AAC7B /* Products */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
A01FB6A80F07CF6E000AAC7B /* «PROJECTNAME» */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
A01FB6A50F07CF6E000AAC7B /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
A01FB6A60F07CF6E000AAC7B /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A01FB6C90F07CFCE000AAC7B /* main.c in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
A01FB69D0F07CF63000AAC7B /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
A01FB69E0F07CF63000AAC7B /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
A01FB6AD0F07CF6F000AAC7B /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||||
|
GCC_MODEL_TUNING = G5;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
INFOPLIST_FILE = Info.plist;
|
||||||
|
INSTALL_PATH = "$(HOME)/Applications";
|
||||||
|
PREBINDING = NO;
|
||||||
|
PRODUCT_NAME = "«PROJECTNAME»";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
A01FB6AE0F07CF6F000AAC7B /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||||
|
GCC_MODEL_TUNING = G5;
|
||||||
|
INFOPLIST_FILE = Info.plist;
|
||||||
|
INSTALL_PATH = "$(HOME)/Applications";
|
||||||
|
PREBINDING = NO;
|
||||||
|
PRODUCT_NAME = "«PROJECTNAME»";
|
||||||
|
ZERO_LINK = NO;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
A01FB69F0F07CF63000AAC7B /* Build configuration list for PBXProject "«PROJECTNAME»" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
A01FB69D0F07CF63000AAC7B /* Debug */,
|
||||||
|
A01FB69E0F07CF63000AAC7B /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
A01FB6AF0F07CF6F000AAC7B /* Build configuration list for PBXNativeTarget "«PROJECTNAME»" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
A01FB6AD0F07CF6F000AAC7B /* Debug */,
|
||||||
|
A01FB6AE0F07CF6F000AAC7B /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = A01FB69C0F07CF63000AAC7B /* Project object */;
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?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>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
@ -0,0 +1,49 @@
|
|||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
// Headers
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
#include <SFML/Graphics.h>
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// Entry point of application
|
||||||
|
///
|
||||||
|
/// \return Application exit code
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
// Create main window
|
||||||
|
sfVideoMode mode = {640, 480, 32};
|
||||||
|
sfWindowSettings settings = {24, 8, 0};
|
||||||
|
sfRenderWindow *App = sfRenderWindow_Create (mode, "CSFML Graphics", sfClose, settings);
|
||||||
|
sfShape *Shape = sfShape_CreateCircle(200, 200, 100, sfYellow,10.f, sfBlue);
|
||||||
|
|
||||||
|
// Start game loop
|
||||||
|
while (sfRenderWindow_IsOpened(App))
|
||||||
|
{
|
||||||
|
// Process events
|
||||||
|
sfEvent Event;
|
||||||
|
while (sfRenderWindow_GetEvent(App, &Event))
|
||||||
|
{
|
||||||
|
// Close window : exit
|
||||||
|
if (Event.Type == sfEvtClosed)
|
||||||
|
sfRenderWindow_Close(App);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear screen
|
||||||
|
sfRenderWindow_Clear(App, sfBlack);
|
||||||
|
|
||||||
|
// Draw shape
|
||||||
|
sfRenderWindow_DrawShape(App, Shape);
|
||||||
|
|
||||||
|
// Finally, display the rendered frame on screen
|
||||||
|
sfRenderWindow_Display(App);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Destroy our objects
|
||||||
|
sfShape_Destroy(Shape);
|
||||||
|
sfRenderWindow_Destroy(App);
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
Binary file not shown.
3
CSFML/xcode/templates/CSFML Tool/CSFML Tool.xcodeproj/TemplateInfo.plist
Executable file
3
CSFML/xcode/templates/CSFML Tool/CSFML Tool.xcodeproj/TemplateInfo.plist
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
Description = "This project builds a SFML executable linked against the System package, and written in C.";
|
||||||
|
}
|
@ -0,0 +1,209 @@
|
|||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 45;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
8DD76F650486A84900D96B5E /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* main.c */; settings = {ATTRIBUTES = (); }; };
|
||||||
|
A0BAFBE70F07DDD2005BC41F /* csfml-system.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A0BAFBE50F07DDD2005BC41F /* csfml-system.framework */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
|
8DD76F690486A84900D96B5E /* CopyFiles */ = {
|
||||||
|
isa = PBXCopyFilesBuildPhase;
|
||||||
|
buildActionMask = 8;
|
||||||
|
dstPath = /usr/share/man/man1/;
|
||||||
|
dstSubfolderSpec = 0;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 1;
|
||||||
|
};
|
||||||
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
08FB7796FE84155DC02AAC07 /* main.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
|
||||||
|
8DD76F6C0486A84900D96B5E /* «PROJECTNAME» */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "«PROJECTNAME»"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
A0BAFBE50F07DDD2005BC41F /* csfml-system.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "csfml-system.framework"; path = "/Library/Frameworks/csfml-system.framework"; sourceTree = "<absolute>"; };
|
||||||
|
A0BAFBE60F07DDD2005BC41F /* SFML.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SFML.framework; path = /Library/Frameworks/SFML.framework; sourceTree = "<absolute>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
8DD76F660486A84900D96B5E /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A0BAFBE70F07DDD2005BC41F /* csfml-system.framework in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
08FB7794FE84155DC02AAC07 /* «PROJECTNAME» */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
08FB7795FE84155DC02AAC07 /* Source */,
|
||||||
|
A0BAFBE30F07DDBD005BC41F /* Frameworks */,
|
||||||
|
1AB674ADFE9D54B511CA2CBB /* Products */,
|
||||||
|
);
|
||||||
|
name = "«PROJECTNAME»";
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
08FB7795FE84155DC02AAC07 /* Source */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
08FB7796FE84155DC02AAC07 /* main.c */,
|
||||||
|
);
|
||||||
|
name = Source;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
1AB674ADFE9D54B511CA2CBB /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
8DD76F6C0486A84900D96B5E /* «PROJECTNAME» */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A0BAFBE30F07DDBD005BC41F /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A0BAFBE60F07DDD2005BC41F /* SFML.framework */,
|
||||||
|
A0BAFBE50F07DDD2005BC41F /* csfml-system.framework */,
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
8DD76F620486A84900D96B5E /* «PROJECTNAME» */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = 1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "«PROJECTNAME»" */;
|
||||||
|
buildPhases = (
|
||||||
|
8DD76F640486A84900D96B5E /* Sources */,
|
||||||
|
8DD76F660486A84900D96B5E /* Frameworks */,
|
||||||
|
8DD76F690486A84900D96B5E /* CopyFiles */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = "«PROJECTNAME»";
|
||||||
|
productInstallPath = "$(HOME)/bin";
|
||||||
|
productName = "«PROJECTNAME»";
|
||||||
|
productReference = 8DD76F6C0486A84900D96B5E /* «PROJECTNAME» */;
|
||||||
|
productType = "com.apple.product-type.tool";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "«PROJECTNAME»" */;
|
||||||
|
compatibilityVersion = "Xcode 3.1";
|
||||||
|
hasScannedForEncodings = 1;
|
||||||
|
mainGroup = 08FB7794FE84155DC02AAC07 /* «PROJECTNAME» */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
8DD76F620486A84900D96B5E /* «PROJECTNAME» */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
8DD76F640486A84900D96B5E /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
8DD76F650486A84900D96B5E /* main.c in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
1DEB923208733DC60010E9CD /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||||
|
GCC_MODEL_TUNING = G5;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
|
"_GLIBCXX_DEBUG=1",
|
||||||
|
"_GLIBCXX_DEBUG_PEDANTIC=1",
|
||||||
|
);
|
||||||
|
INSTALL_PATH = /usr/local/bin;
|
||||||
|
PRODUCT_NAME = "«PROJECTNAME»";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
1DEB923308733DC60010E9CD /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
GCC_MODEL_TUNING = G5;
|
||||||
|
INSTALL_PATH = /usr/local/bin;
|
||||||
|
PRODUCT_NAME = "«PROJECTNAME»";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
1DEB923608733DC60010E9CD /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||||
|
GCC_C_LANGUAGE_STANDARD = c99;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
PREBINDING = NO;
|
||||||
|
SDKROOT = macosx10.5;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
1DEB923708733DC60010E9CD /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||||
|
GCC_C_LANGUAGE_STANDARD = c99;
|
||||||
|
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||||
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||||
|
PREBINDING = NO;
|
||||||
|
SDKROOT = macosx10.5;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "«PROJECTNAME»" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
1DEB923208733DC60010E9CD /* Debug */,
|
||||||
|
1DEB923308733DC60010E9CD /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "«PROJECTNAME»" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
1DEB923608733DC60010E9CD /* Debug */,
|
||||||
|
1DEB923708733DC60010E9CD /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||||
|
}
|
10
CSFML/xcode/templates/CSFML Tool/main.c
Normal file
10
CSFML/xcode/templates/CSFML Tool/main.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
#include <SFML/System.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
/* Your code here */
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
FilesToMacroExpand = (
|
||||||
|
"Info.plist",
|
||||||
|
);
|
||||||
|
Description = "This project builds a SFML application linked against the System and Window packages, and written in C.";
|
||||||
|
}
|
@ -0,0 +1,233 @@
|
|||||||
|
// !$*UTF8*$!
|
||||||
|
{
|
||||||
|
archiveVersion = 1;
|
||||||
|
classes = {
|
||||||
|
};
|
||||||
|
objectVersion = 42;
|
||||||
|
objects = {
|
||||||
|
|
||||||
|
/* Begin PBXBuildFile section */
|
||||||
|
A0072ADE0F1D0EC500B4A594 /* csfml-system.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */; };
|
||||||
|
A0072ADF0F1D0EC500B4A594 /* csfml-window.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */; };
|
||||||
|
A01FB6C90F07CFCE000AAC7B /* main.c in Sources */ = {isa = PBXBuildFile; fileRef = A01FB6C80F07CFCE000AAC7B /* main.c */; };
|
||||||
|
A01FB6CF0F07CFF2000AAC7B /* csfml-system.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */; };
|
||||||
|
A01FB6D00F07CFF2000AAC7B /* csfml-window.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */; };
|
||||||
|
A072DDA60FCE9FE8002D8059 /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A072DDA50FCE9FE8002D8059 /* OpenGL.framework */; };
|
||||||
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
|
A0072AF00F1D0EDD00B4A594 /* Copy Frameworks */ = {
|
||||||
|
isa = PBXCopyFilesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
dstPath = "";
|
||||||
|
dstSubfolderSpec = 10;
|
||||||
|
files = (
|
||||||
|
A0072ADE0F1D0EC500B4A594 /* csfml-system.framework in Copy Frameworks */,
|
||||||
|
A0072ADF0F1D0EC500B4A594 /* csfml-window.framework in Copy Frameworks */,
|
||||||
|
);
|
||||||
|
name = "Copy Frameworks";
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXFileReference section */
|
||||||
|
A01FB6A90F07CF6E000AAC7B /* «PROJECTNAME».app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "«PROJECTNAME».app"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
|
A01FB6AC0F07CF6E000AAC7B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
|
A01FB6C80F07CFCE000AAC7B /* main.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
|
||||||
|
A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "csfml-system.framework"; path = "/Library/Frameworks/csfml-system.framework"; sourceTree = "<absolute>"; };
|
||||||
|
A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = "csfml-window.framework"; path = "/Library/Frameworks/csfml-window.framework"; sourceTree = "<absolute>"; };
|
||||||
|
A01FB6CD0F07CFF2000AAC7B /* SFML.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SFML.framework; path = /Library/Frameworks/SFML.framework; sourceTree = "<absolute>"; };
|
||||||
|
A072DDA50FCE9FE8002D8059 /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = /System/Library/Frameworks/OpenGL.framework; sourceTree = "<absolute>"; };
|
||||||
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
/* Begin PBXFrameworksBuildPhase section */
|
||||||
|
A01FB6A70F07CF6E000AAC7B /* Frameworks */ = {
|
||||||
|
isa = PBXFrameworksBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A01FB6CF0F07CFF2000AAC7B /* csfml-system.framework in Frameworks */,
|
||||||
|
A01FB6D00F07CFF2000AAC7B /* csfml-window.framework in Frameworks */,
|
||||||
|
A072DDA60FCE9FE8002D8059 /* OpenGL.framework in Frameworks */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXFrameworksBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXGroup section */
|
||||||
|
A01FB69A0F07CF63000AAC7B = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6B20F07CF80000AAC7B /* Sources */,
|
||||||
|
A01FB6B10F07CF7C000AAC7B /* Resources */,
|
||||||
|
A01FB6B00F07CF75000AAC7B /* Frameworks */,
|
||||||
|
A01FB6AA0F07CF6E000AAC7B /* Products */,
|
||||||
|
);
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6AA0F07CF6E000AAC7B /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6A90F07CF6E000AAC7B /* «PROJECTNAME».app */,
|
||||||
|
);
|
||||||
|
name = Products;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6B00F07CF75000AAC7B /* Frameworks */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A072DDA50FCE9FE8002D8059 /* OpenGL.framework */,
|
||||||
|
A01FB6CD0F07CFF2000AAC7B /* SFML.framework */,
|
||||||
|
A01FB6CB0F07CFF2000AAC7B /* csfml-system.framework */,
|
||||||
|
A01FB6CC0F07CFF2000AAC7B /* csfml-window.framework */,
|
||||||
|
);
|
||||||
|
name = Frameworks;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6B10F07CF7C000AAC7B /* Resources */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6AC0F07CF6E000AAC7B /* Info.plist */,
|
||||||
|
);
|
||||||
|
name = Resources;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
A01FB6B20F07CF80000AAC7B /* Sources */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
A01FB6C80F07CFCE000AAC7B /* main.c */,
|
||||||
|
);
|
||||||
|
name = Sources;
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
|
/* End PBXGroup section */
|
||||||
|
|
||||||
|
/* Begin PBXNativeTarget section */
|
||||||
|
A01FB6A80F07CF6E000AAC7B /* «PROJECTNAME» */ = {
|
||||||
|
isa = PBXNativeTarget;
|
||||||
|
buildConfigurationList = A01FB6AF0F07CF6F000AAC7B /* Build configuration list for PBXNativeTarget "«PROJECTNAME»" */;
|
||||||
|
buildPhases = (
|
||||||
|
A01FB6A50F07CF6E000AAC7B /* Resources */,
|
||||||
|
A01FB6A60F07CF6E000AAC7B /* Sources */,
|
||||||
|
A01FB6A70F07CF6E000AAC7B /* Frameworks */,
|
||||||
|
A0072AF00F1D0EDD00B4A594 /* Copy Frameworks */,
|
||||||
|
);
|
||||||
|
buildRules = (
|
||||||
|
);
|
||||||
|
dependencies = (
|
||||||
|
);
|
||||||
|
name = "«PROJECTNAME»";
|
||||||
|
productName = "«PROJECTNAME»";
|
||||||
|
productReference = A01FB6A90F07CF6E000AAC7B /* «PROJECTNAME».app */;
|
||||||
|
productType = "com.apple.product-type.application";
|
||||||
|
};
|
||||||
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
|
/* Begin PBXProject section */
|
||||||
|
A01FB69C0F07CF63000AAC7B /* Project object */ = {
|
||||||
|
isa = PBXProject;
|
||||||
|
buildConfigurationList = A01FB69F0F07CF63000AAC7B /* Build configuration list for PBXProject "«PROJECTNAME»" */;
|
||||||
|
compatibilityVersion = "Xcode 2.4";
|
||||||
|
hasScannedForEncodings = 0;
|
||||||
|
mainGroup = A01FB69A0F07CF63000AAC7B;
|
||||||
|
productRefGroup = A01FB6AA0F07CF6E000AAC7B /* Products */;
|
||||||
|
projectDirPath = "";
|
||||||
|
projectRoot = "";
|
||||||
|
targets = (
|
||||||
|
A01FB6A80F07CF6E000AAC7B /* «PROJECTNAME» */,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
/* End PBXProject section */
|
||||||
|
|
||||||
|
/* Begin PBXResourcesBuildPhase section */
|
||||||
|
A01FB6A50F07CF6E000AAC7B /* Resources */ = {
|
||||||
|
isa = PBXResourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
|
A01FB6A60F07CF6E000AAC7B /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
A01FB6C90F07CFCE000AAC7B /* main.c in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin XCBuildConfiguration section */
|
||||||
|
A01FB69D0F07CF63000AAC7B /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
A01FB69E0F07CF63000AAC7B /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
A01FB6AD0F07CF6F000AAC7B /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COPY_PHASE_STRIP = NO;
|
||||||
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
|
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||||
|
GCC_MODEL_TUNING = G5;
|
||||||
|
GCC_OPTIMIZATION_LEVEL = 0;
|
||||||
|
INFOPLIST_FILE = Info.plist;
|
||||||
|
INSTALL_PATH = "$(HOME)/Applications";
|
||||||
|
PREBINDING = NO;
|
||||||
|
PRODUCT_NAME = "«PROJECTNAME»";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
A01FB6AE0F07CF6F000AAC7B /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
COPY_PHASE_STRIP = YES;
|
||||||
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
|
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||||
|
GCC_MODEL_TUNING = G5;
|
||||||
|
INFOPLIST_FILE = Info.plist;
|
||||||
|
INSTALL_PATH = "$(HOME)/Applications";
|
||||||
|
PREBINDING = NO;
|
||||||
|
PRODUCT_NAME = "«PROJECTNAME»";
|
||||||
|
ZERO_LINK = NO;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
|
/* Begin XCConfigurationList section */
|
||||||
|
A01FB69F0F07CF63000AAC7B /* Build configuration list for PBXProject "«PROJECTNAME»" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
A01FB69D0F07CF63000AAC7B /* Debug */,
|
||||||
|
A01FB69E0F07CF63000AAC7B /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
A01FB6AF0F07CF6F000AAC7B /* Build configuration list for PBXNativeTarget "«PROJECTNAME»" */ = {
|
||||||
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
|
A01FB6AD0F07CF6F000AAC7B /* Debug */,
|
||||||
|
A01FB6AE0F07CF6F000AAC7B /* Release */,
|
||||||
|
);
|
||||||
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
|
/* End XCConfigurationList section */
|
||||||
|
};
|
||||||
|
rootObject = A01FB69C0F07CF63000AAC7B /* Project object */;
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?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>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.yourcompany.${PRODUCT_NAME:identifier}</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>1.0</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
59
CSFML/xcode/templates/CSFML Window-based Application/main.c
Normal file
59
CSFML/xcode/templates/CSFML Window-based Application/main.c
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
// Headers
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
#include <SFML/Window.h>
|
||||||
|
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// Entry point of application
|
||||||
|
///
|
||||||
|
/// \return Application exit code
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
// Create main window
|
||||||
|
sfVideoMode mode = {640, 480, 32};
|
||||||
|
sfWindowSettings settings = {24, 8, 0};
|
||||||
|
sfWindow *App = sfWindow_Create (mode, "CSFML Window", sfClose, settings);
|
||||||
|
|
||||||
|
// Start game loop
|
||||||
|
while (sfWindow_IsOpened(App))
|
||||||
|
{
|
||||||
|
// Process events
|
||||||
|
sfEvent Event;
|
||||||
|
while (sfWindow_GetEvent(App, &Event))
|
||||||
|
{
|
||||||
|
// Close window : exit
|
||||||
|
if (Event.Type == sfEvtClosed)
|
||||||
|
sfWindow_Close(App);
|
||||||
|
|
||||||
|
// Escape key : exit
|
||||||
|
if ((Event.Type == sfEvtKeyPressed) && (Event.Key.Code == sfKeyEscape))
|
||||||
|
sfWindow_Close(App);
|
||||||
|
|
||||||
|
// Resize event : adjust viewport
|
||||||
|
if (Event.Type == sfEvtResized)
|
||||||
|
glViewport(0, 0, Event.Size.Width, Event.Size.Height);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the active window before using OpenGL commands
|
||||||
|
// It's useless here because active window is always the same,
|
||||||
|
// but don't forget it if you use multiple windows or controls
|
||||||
|
sfWindow_SetActive(App, sfTrue);
|
||||||
|
|
||||||
|
// Clear color buffer
|
||||||
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
|
// Your drawing here...
|
||||||
|
|
||||||
|
// Finally, display rendered frame on screen
|
||||||
|
sfWindow_Display(App);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Destroy our window
|
||||||
|
sfWindow_Destroy(App);
|
||||||
|
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user