includes and header cleanup
--HG-- extra : convert_revision : svn%3A7752d6cf-9f14-4ad2-affc-04f1e67b81a5/trunk%40213
This commit is contained in:
@@ -193,7 +193,7 @@
|
|||||||
E4B2A4391523B027004CB0EC /* KRMaterial.h in Headers */ = {isa = PBXBuildFile; fileRef = E491017D13C99BDC0098455B /* KRMaterial.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
E4B2A4391523B027004CB0EC /* KRMaterial.h in Headers */ = {isa = PBXBuildFile; fileRef = E491017D13C99BDC0098455B /* KRMaterial.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||||
E4B2A43B1523B02E004CB0EC /* KRMaterial.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E491017C13C99BDC0098455B /* KRMaterial.cpp */; };
|
E4B2A43B1523B02E004CB0EC /* KRMaterial.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E491017C13C99BDC0098455B /* KRMaterial.cpp */; };
|
||||||
E4BBBB8A1512A40300F43B5B /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E4BBBB881512A40300F43B5B /* InfoPlist.strings */; };
|
E4BBBB8A1512A40300F43B5B /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E4BBBB881512A40300F43B5B /* InfoPlist.strings */; };
|
||||||
E4BBBB8E1512A40300F43B5B /* krengine_osx.m in Sources */ = {isa = PBXBuildFile; fileRef = E4BBBB8D1512A40300F43B5B /* krengine_osx.m */; };
|
E4BBBB8E1512A40300F43B5B /* krengine_osx.mm in Sources */ = {isa = PBXBuildFile; fileRef = E4BBBB8D1512A40300F43B5B /* krengine_osx.mm */; };
|
||||||
E4BBBB9C1512A4A900F43B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BBBB9A1512A48200F43B5B /* Foundation.framework */; };
|
E4BBBB9C1512A4A900F43B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BBBB9A1512A48200F43B5B /* Foundation.framework */; };
|
||||||
E4BBBB9D1512A4AC00F43B5B /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BBBB981512A47500F43B5B /* CoreData.framework */; };
|
E4BBBB9D1512A4AC00F43B5B /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BBBB981512A47500F43B5B /* CoreData.framework */; };
|
||||||
E4BBBB9E1512A4AE00F43B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BBBB961512A46700F43B5B /* AppKit.framework */; };
|
E4BBBB9E1512A4AE00F43B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E4BBBB961512A46700F43B5B /* AppKit.framework */; };
|
||||||
@@ -292,9 +292,9 @@
|
|||||||
E414BAE6143557D200A668C4 /* KRScene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRScene.h; path = Classes/KRScene.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
E414BAE6143557D200A668C4 /* KRScene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRScene.h; path = Classes/KRScene.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E414BAE81435585A00A668C4 /* KRScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRScene.cpp; path = Classes/KRScene.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
E414BAE81435585A00A668C4 /* KRScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRScene.cpp; path = Classes/KRScene.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
||||||
E414F9A41694D977000B3D58 /* KRUnknownManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRUnknownManager.cpp; path = Classes/KRUnknownManager.cpp; sourceTree = "<group>"; };
|
E414F9A41694D977000B3D58 /* KRUnknownManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRUnknownManager.cpp; path = Classes/KRUnknownManager.cpp; sourceTree = "<group>"; };
|
||||||
E414F9A51694D977000B3D58 /* KRUnknownManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRUnknownManager.h; path = Classes/KRUnknownManager.h; sourceTree = "<group>"; };
|
E414F9A51694D977000B3D58 /* KRUnknownManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRUnknownManager.h; path = Classes/KRUnknownManager.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E414F9AA1694DA37000B3D58 /* KRUnknown.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRUnknown.cpp; path = Classes/KRUnknown.cpp; sourceTree = "<group>"; };
|
E414F9AA1694DA37000B3D58 /* KRUnknown.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRUnknown.cpp; path = Classes/KRUnknown.cpp; sourceTree = "<group>"; };
|
||||||
E414F9AB1694DA37000B3D58 /* KRUnknown.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRUnknown.h; path = Classes/KRUnknown.h; sourceTree = "<group>"; };
|
E414F9AB1694DA37000B3D58 /* KRUnknown.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRUnknown.h; path = Classes/KRUnknown.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E416AA9816713749000F6786 /* KRAnimationCurveManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRAnimationCurveManager.h; path = Classes/KRAnimationCurveManager.h; sourceTree = "<group>"; };
|
E416AA9816713749000F6786 /* KRAnimationCurveManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRAnimationCurveManager.h; path = Classes/KRAnimationCurveManager.h; sourceTree = "<group>"; };
|
||||||
E416AA9B1671375C000F6786 /* KRAnimationCurveManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRAnimationCurveManager.cpp; path = Classes/KRAnimationCurveManager.cpp; sourceTree = "<group>"; };
|
E416AA9B1671375C000F6786 /* KRAnimationCurveManager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRAnimationCurveManager.cpp; path = Classes/KRAnimationCurveManager.cpp; sourceTree = "<group>"; };
|
||||||
E41B841D16260C5600C7A771 /* sky_box.fsh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; name = sky_box.fsh; path = Shaders/sky_box.fsh; sourceTree = "<group>"; };
|
E41B841D16260C5600C7A771 /* sky_box.fsh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; name = sky_box.fsh; path = Shaders/sky_box.fsh; sourceTree = "<group>"; };
|
||||||
@@ -347,7 +347,7 @@
|
|||||||
E461A15B152E563000F2044A /* KRDirectionalLight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRDirectionalLight.h; path = Classes/KRDirectionalLight.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
E461A15B152E563000F2044A /* KRDirectionalLight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRDirectionalLight.h; path = Classes/KRDirectionalLight.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E461A15E152E565700F2044A /* KRDirectionalLight.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRDirectionalLight.cpp; path = Classes/KRDirectionalLight.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
E461A15E152E565700F2044A /* KRDirectionalLight.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRDirectionalLight.cpp; path = Classes/KRDirectionalLight.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
||||||
E461A164152E56C000F2044A /* KRSpotLight.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRSpotLight.cpp; path = Classes/KRSpotLight.cpp; sourceTree = "<group>"; };
|
E461A164152E56C000F2044A /* KRSpotLight.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRSpotLight.cpp; path = Classes/KRSpotLight.cpp; sourceTree = "<group>"; };
|
||||||
E461A167152E570500F2044A /* KRSpotLight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRSpotLight.h; path = Classes/KRSpotLight.h; sourceTree = "<group>"; };
|
E461A167152E570500F2044A /* KRSpotLight.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRSpotLight.h; path = Classes/KRSpotLight.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E46A6B6C1559E97D000DBD37 /* KRResource+blend.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "KRResource+blend.cpp"; path = "Classes/KRResource+blend.cpp"; sourceTree = "<group>"; };
|
E46A6B6C1559E97D000DBD37 /* KRResource+blend.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "KRResource+blend.cpp"; path = "Classes/KRResource+blend.cpp"; sourceTree = "<group>"; };
|
||||||
E46A6B6F1559EF0A000DBD37 /* KRResource+blend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "KRResource+blend.h"; path = "Classes/KRResource+blend.h"; sourceTree = "<group>"; };
|
E46A6B6F1559EF0A000DBD37 /* KRResource+blend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "KRResource+blend.h"; path = "Classes/KRResource+blend.h"; sourceTree = "<group>"; };
|
||||||
E46C214115364BC8009CABF3 /* tinyxml2_readme.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = tinyxml2_readme.txt; path = KREngine/Classes/tinyxml2_readme.txt; sourceTree = "<group>"; };
|
E46C214115364BC8009CABF3 /* tinyxml2_readme.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = tinyxml2_readme.txt; path = KREngine/Classes/tinyxml2_readme.txt; sourceTree = "<group>"; };
|
||||||
@@ -407,7 +407,7 @@
|
|||||||
E4924C2A15EE96AA00B965C6 /* KROctreeNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KROctreeNode.h; path = Classes/KROctreeNode.h; sourceTree = "<group>"; };
|
E4924C2A15EE96AA00B965C6 /* KROctreeNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KROctreeNode.h; path = Classes/KROctreeNode.h; sourceTree = "<group>"; };
|
||||||
E494322F169E08D200BCB891 /* KRReverbZone.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRReverbZone.cpp; path = Classes/KRReverbZone.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
E494322F169E08D200BCB891 /* KRReverbZone.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRReverbZone.cpp; path = Classes/KRReverbZone.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
||||||
E4943230169E08D200BCB891 /* KRReverbZone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRReverbZone.h; path = Classes/KRReverbZone.h; sourceTree = "<group>"; };
|
E4943230169E08D200BCB891 /* KRReverbZone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRReverbZone.h; path = Classes/KRReverbZone.h; sourceTree = "<group>"; };
|
||||||
E497B943151BA93400D3DC67 /* KRVector2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = KRVector2.h; path = Classes/KRVector2.h; sourceTree = "<group>"; };
|
E497B943151BA93400D3DC67 /* KRVector2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRVector2.h; path = Classes/KRVector2.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E497B945151BA99400D3DC67 /* KRVector2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRVector2.cpp; path = Classes/KRVector2.cpp; sourceTree = "<group>"; };
|
E497B945151BA99400D3DC67 /* KRVector2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRVector2.cpp; path = Classes/KRVector2.cpp; sourceTree = "<group>"; };
|
||||||
E497B949151BCEE900D3DC67 /* KRResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRResource.h; path = Classes/KRResource.h; sourceTree = "<group>"; };
|
E497B949151BCEE900D3DC67 /* KRResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRResource.h; path = Classes/KRResource.h; sourceTree = "<group>"; };
|
||||||
E497B94C151BCF2500D3DC67 /* KRResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRResource.cpp; path = Classes/KRResource.cpp; sourceTree = "<group>"; };
|
E497B94C151BCF2500D3DC67 /* KRResource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRResource.cpp; path = Classes/KRResource.cpp; sourceTree = "<group>"; };
|
||||||
@@ -418,7 +418,7 @@
|
|||||||
E4A9DEBD154120C4009DF363 /* light_point.fsh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; lineEnding = 0; name = light_point.fsh; path = Shaders/light_point.fsh; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.glsl; };
|
E4A9DEBD154120C4009DF363 /* light_point.fsh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; lineEnding = 0; name = light_point.fsh; path = Shaders/light_point.fsh; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.glsl; };
|
||||||
E4A9DEC0154120E8009DF363 /* light_point.vsh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; name = light_point.vsh; path = Shaders/light_point.vsh; sourceTree = "<group>"; };
|
E4A9DEC0154120E8009DF363 /* light_point.vsh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.glsl; name = light_point.vsh; path = Shaders/light_point.vsh; sourceTree = "<group>"; };
|
||||||
E4B175AA161F5A1000B8FB80 /* KRTexture.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTexture.cpp; path = Classes/KRTexture.cpp; sourceTree = "<group>"; };
|
E4B175AA161F5A1000B8FB80 /* KRTexture.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTexture.cpp; path = Classes/KRTexture.cpp; sourceTree = "<group>"; };
|
||||||
E4B175AB161F5A1000B8FB80 /* KRTexture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTexture.h; path = Classes/KRTexture.h; sourceTree = "<group>"; };
|
E4B175AB161F5A1000B8FB80 /* KRTexture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = KRTexture.h; path = Classes/KRTexture.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||||
E4B175B0161F5FAE00B8FB80 /* KRTextureCube.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTextureCube.cpp; path = Classes/KRTextureCube.cpp; sourceTree = "<group>"; };
|
E4B175B0161F5FAE00B8FB80 /* KRTextureCube.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTextureCube.cpp; path = Classes/KRTextureCube.cpp; sourceTree = "<group>"; };
|
||||||
E4B175B1161F5FAF00B8FB80 /* KRTextureCube.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTextureCube.h; path = Classes/KRTextureCube.h; sourceTree = "<group>"; };
|
E4B175B1161F5FAF00B8FB80 /* KRTextureCube.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTextureCube.h; path = Classes/KRTextureCube.h; sourceTree = "<group>"; };
|
||||||
E4BBBB7E1512A40300F43B5B /* krengine_osx.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = krengine_osx.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
E4BBBB7E1512A40300F43B5B /* krengine_osx.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = krengine_osx.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
@@ -426,7 +426,7 @@
|
|||||||
E4BBBB891512A40300F43B5B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
E4BBBB891512A40300F43B5B /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||||
E4BBBB8B1512A40300F43B5B /* krengine_osx-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "krengine_osx-Prefix.pch"; sourceTree = "<group>"; };
|
E4BBBB8B1512A40300F43B5B /* krengine_osx-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "krengine_osx-Prefix.pch"; sourceTree = "<group>"; };
|
||||||
E4BBBB8C1512A40300F43B5B /* krengine_osx.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = krengine_osx.h; sourceTree = "<group>"; };
|
E4BBBB8C1512A40300F43B5B /* krengine_osx.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = krengine_osx.h; sourceTree = "<group>"; };
|
||||||
E4BBBB8D1512A40300F43B5B /* krengine_osx.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = krengine_osx.m; sourceTree = "<group>"; };
|
E4BBBB8D1512A40300F43B5B /* krengine_osx.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = krengine_osx.mm; sourceTree = "<group>"; };
|
||||||
E4BBBB941512A45500F43B5B /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = ../../../../MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
E4BBBB941512A45500F43B5B /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = ../../../../MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
|
||||||
E4BBBB961512A46700F43B5B /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = ../../../../MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
|
E4BBBB961512A46700F43B5B /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = ../../../../MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
|
||||||
E4BBBB981512A47500F43B5B /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = ../../../../MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
|
E4BBBB981512A47500F43B5B /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = ../../../../MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
|
||||||
@@ -438,7 +438,7 @@
|
|||||||
E4C454B7167BD235003586CD /* KRHitInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRHitInfo.h; path = Classes/KRHitInfo.h; sourceTree = "<group>"; };
|
E4C454B7167BD235003586CD /* KRHitInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRHitInfo.h; path = Classes/KRHitInfo.h; sourceTree = "<group>"; };
|
||||||
E4C454BA167BD248003586CD /* KRHitInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRHitInfo.cpp; path = Classes/KRHitInfo.cpp; sourceTree = "<group>"; };
|
E4C454BA167BD248003586CD /* KRHitInfo.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRHitInfo.cpp; path = Classes/KRHitInfo.cpp; sourceTree = "<group>"; };
|
||||||
E4CA10E41637BD0A005D9400 /* KRTexturePVR.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTexturePVR.h; path = Classes/KRTexturePVR.h; sourceTree = "<group>"; };
|
E4CA10E41637BD0A005D9400 /* KRTexturePVR.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTexturePVR.h; path = Classes/KRTexturePVR.h; sourceTree = "<group>"; };
|
||||||
E4CA10E81637BD2B005D9400 /* KRTexturePVR.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTexturePVR.cpp; path = Classes/KRTexturePVR.cpp; sourceTree = "<group>"; };
|
E4CA10E81637BD2B005D9400 /* KRTexturePVR.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = KRTexturePVR.cpp; path = Classes/KRTexturePVR.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
|
||||||
E4CA10EB1637BD47005D9400 /* KRTextureTGA.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTextureTGA.h; path = Classes/KRTextureTGA.h; sourceTree = "<group>"; };
|
E4CA10EB1637BD47005D9400 /* KRTextureTGA.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KRTextureTGA.h; path = Classes/KRTextureTGA.h; sourceTree = "<group>"; };
|
||||||
E4CA10EE1637BD58005D9400 /* KRTextureTGA.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTextureTGA.cpp; path = Classes/KRTextureTGA.cpp; sourceTree = "<group>"; };
|
E4CA10EE1637BD58005D9400 /* KRTextureTGA.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = KRTextureTGA.cpp; path = Classes/KRTextureTGA.cpp; sourceTree = "<group>"; };
|
||||||
E4CA10F51638BCAE005D9400 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; };
|
E4CA10F51638BCAE005D9400 /* Accelerate.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accelerate.framework; path = System/Library/Frameworks/Accelerate.framework; sourceTree = SDKROOT; };
|
||||||
@@ -882,7 +882,7 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
E4BBBB8C1512A40300F43B5B /* krengine_osx.h */,
|
E4BBBB8C1512A40300F43B5B /* krengine_osx.h */,
|
||||||
E4BBBB8D1512A40300F43B5B /* krengine_osx.m */,
|
E4BBBB8D1512A40300F43B5B /* krengine_osx.mm */,
|
||||||
E4BBBB861512A40300F43B5B /* Supporting Files */,
|
E4BBBB861512A40300F43B5B /* Supporting Files */,
|
||||||
);
|
);
|
||||||
path = krengine_osx;
|
path = krengine_osx;
|
||||||
@@ -1226,7 +1226,7 @@
|
|||||||
E461A175152E5C4800F2044A /* KRLight.cpp in Sources */,
|
E461A175152E5C4800F2044A /* KRLight.cpp in Sources */,
|
||||||
E4BBBBA71512A6DC00F43B5B /* KRVector3.cpp in Sources */,
|
E4BBBBA71512A6DC00F43B5B /* KRVector3.cpp in Sources */,
|
||||||
E4B2A43B1523B02E004CB0EC /* KRMaterial.cpp in Sources */,
|
E4B2A43B1523B02E004CB0EC /* KRMaterial.cpp in Sources */,
|
||||||
E4BBBB8E1512A40300F43B5B /* krengine_osx.m in Sources */,
|
E4BBBB8E1512A40300F43B5B /* krengine_osx.mm in Sources */,
|
||||||
E497B947151BA99500D3DC67 /* KRVector2.cpp in Sources */,
|
E497B947151BA99500D3DC67 /* KRVector2.cpp in Sources */,
|
||||||
E497B94E151BCF2500D3DC67 /* KRResource.cpp in Sources */,
|
E497B94E151BCF2500D3DC67 /* KRResource.cpp in Sources */,
|
||||||
E497B951151BD2CE00D3DC67 /* KRResource+obj.cpp in Sources */,
|
E497B951151BD2CE00D3DC67 /* KRResource+obj.cpp in Sources */,
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#include "KRNode.h"
|
#include "KRNode.h"
|
||||||
#include "KRAnimationCurve.h"
|
#include "KRAnimationCurve.h"
|
||||||
|
|
||||||
#import "tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
|
|
||||||
KRAnimation::KRAnimation(KRContext &context, std::string name) : KRResource(context, name)
|
KRAnimation::KRAnimation(KRContext &context, std::string name) : KRResource(context, name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,12 +32,12 @@
|
|||||||
#ifndef KRANIMATION_H
|
#ifndef KRANIMATION_H
|
||||||
#define KRANIMATION_H
|
#define KRANIMATION_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import "KRAnimationLayer.h"
|
#include "KRAnimationLayer.h"
|
||||||
#import <map>
|
|
||||||
|
|
||||||
class KRAnimation : public KRResource {
|
class KRAnimation : public KRResource {
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,11 @@
|
|||||||
#ifndef KRANIMATIONATTRIBUTE_H
|
#ifndef KRANIMATIONATTRIBUTE_H
|
||||||
#define KRANIMATIONATTRIBUTE_H
|
#define KRANIMATIONATTRIBUTE_H
|
||||||
|
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRAnimationCurve.h"
|
#include "KRAnimationCurve.h"
|
||||||
|
|
||||||
class KRAnimationAttribute : public KRContextObject {
|
class KRAnimationAttribute : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -32,11 +32,10 @@
|
|||||||
#ifndef KRANIMATIONCURVE_H
|
#ifndef KRANIMATIONCURVE_H
|
||||||
#define KRANIMATIONCURVE_H
|
#define KRANIMATIONCURVE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import <map>
|
|
||||||
|
|
||||||
class KRAnimationCurve : public KRResource {
|
class KRAnimationCurve : public KRResource {
|
||||||
|
|
||||||
|
|||||||
@@ -32,15 +32,12 @@
|
|||||||
#ifndef KRANIMATIONCURVEMANAGER_H
|
#ifndef KRANIMATIONCURVEMANAGER_H
|
||||||
#define KRANIMATIONCURVEMANAGER_H
|
#define KRANIMATIONCURVEMANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRAnimationCurve.h"
|
#include "KRAnimationCurve.h"
|
||||||
#include "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#import <string>
|
|
||||||
|
|
||||||
using std::map;
|
using std::map;
|
||||||
|
|
||||||
class KRAnimationCurveManager : public KRContextObject {
|
class KRAnimationCurveManager : public KRContextObject {
|
||||||
|
|||||||
@@ -32,10 +32,10 @@
|
|||||||
#ifndef KRANIMATIONLAYER_H
|
#ifndef KRANIMATIONLAYER_H
|
||||||
#define KRANIMATIONLAYER_H
|
#define KRANIMATIONLAYER_H
|
||||||
|
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
#import "KRAnimationAttribute.h"
|
#include "KRAnimationAttribute.h"
|
||||||
|
|
||||||
class KRAnimationLayer : public KRContextObject {
|
class KRAnimationLayer : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -32,18 +32,13 @@
|
|||||||
#ifndef KRANIMATIONMANAGER_H
|
#ifndef KRANIMATIONMANAGER_H
|
||||||
#define KRANIMATIONMANAGER_H
|
#define KRANIMATIONMANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRAnimation.h"
|
#include "KRAnimation.h"
|
||||||
#include "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#import <string>
|
|
||||||
|
|
||||||
using std::map;
|
|
||||||
using std::set;
|
|
||||||
|
|
||||||
class KRAnimationManager : public KRContextObject {
|
class KRAnimationManager : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -32,19 +32,12 @@
|
|||||||
#ifndef KRAUDIO_MANAGER_H
|
#ifndef KRAUDIO_MANAGER_H
|
||||||
#define KRAUDIO_MANAGER_H
|
#define KRAUDIO_MANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRAudioSample.h"
|
#include "KRAudioSample.h"
|
||||||
#include "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#include "KRmat4.h"
|
#include "KRMat4.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
using std::map;
|
|
||||||
using std::set;
|
|
||||||
|
|
||||||
const int KRENGINE_AUDIO_MAX_POOL_SIZE = 32;
|
const int KRENGINE_AUDIO_MAX_POOL_SIZE = 32;
|
||||||
const int KRENGINE_AUDIO_MAX_BUFFER_SIZE = 64*1024;
|
const int KRENGINE_AUDIO_MAX_BUFFER_SIZE = 64*1024;
|
||||||
|
|||||||
@@ -32,11 +32,10 @@
|
|||||||
#ifndef KRAUDIOSAMPLE_H
|
#ifndef KRAUDIOSAMPLE_H
|
||||||
#define KRAUDIOSAMPLE_H
|
#define KRAUDIOSAMPLE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import <map>
|
|
||||||
|
|
||||||
class KRAudioBuffer;
|
class KRAudioBuffer;
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,10 @@
|
|||||||
#ifndef KRAUDIOSOURCE_H
|
#ifndef KRAUDIOSOURCE_H
|
||||||
#define KRAUDIOSOURCE_H
|
#define KRAUDIOSOURCE_H
|
||||||
|
|
||||||
#import "KRResource.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRNode.h"
|
#include "KRResource.h"
|
||||||
#import "KRTexture.h"
|
#include "KRNode.h"
|
||||||
|
#include "KRTexture.h"
|
||||||
#include <queue>
|
|
||||||
|
|
||||||
class KRAudioSample;
|
class KRAudioSample;
|
||||||
class KRAudioBuffer;
|
class KRAudioBuffer;
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
#ifndef KRBONE_H
|
#ifndef KRBONE_H
|
||||||
#define KRBONE_H
|
#define KRBONE_H
|
||||||
|
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
|
|
||||||
class KRBone : public KRNode {
|
class KRBone : public KRNode {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -31,8 +31,7 @@
|
|||||||
|
|
||||||
#include "KRBundle.h"
|
#include "KRBundle.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
#include <assert.h>
|
#include "KREngine-common.h"
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
const int KRENGINE_KRBUNDLE_HEADER_SIZE = 512;
|
const int KRENGINE_KRBUNDLE_HEADER_SIZE = 512;
|
||||||
|
|
||||||
|
|||||||
@@ -31,9 +31,9 @@
|
|||||||
#ifndef KRBUNDLE_H
|
#ifndef KRBUNDLE_H
|
||||||
#define KRBUNDLE_H
|
#define KRBUNDLE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
class KRBundle : public KRResource {
|
class KRBundle : public KRResource {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "KRBundleManager.h"
|
#include "KRBundleManager.h"
|
||||||
|
|
||||||
#import "KRBundle.h"
|
#include "KRBundle.h"
|
||||||
|
|
||||||
KRBundleManager::KRBundleManager(KRContext &context) : KRContextObject(context) {
|
KRBundleManager::KRBundleManager(KRContext &context) : KRContextObject(context) {
|
||||||
|
|
||||||
|
|||||||
@@ -33,17 +33,13 @@
|
|||||||
#ifndef KRBUNDLEMANAGER_H
|
#ifndef KRBUNDLEMANAGER_H
|
||||||
#define KRBUNDLEMANAGER_H
|
#define KRBUNDLEMANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
class KRContext;
|
class KRContext;
|
||||||
class KRBundle;
|
class KRBundle;
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#import <string>
|
|
||||||
using std::map;
|
|
||||||
|
|
||||||
class KRBundleManager : public KRContextObject {
|
class KRBundleManager : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
KRBundleManager(KRContext &context);
|
KRBundleManager(KRContext &context);
|
||||||
|
|||||||
@@ -29,17 +29,11 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <string>
|
#include "KREngine-common.h"
|
||||||
#include <iostream>
|
#include "KRVector2.h"
|
||||||
#include <sstream>
|
#include "KRCamera.h"
|
||||||
#include <fstream>
|
#include "KRStockGeometry.h"
|
||||||
#import <assert.h>
|
#include "KRDirectionalLight.h"
|
||||||
#include <stack.h>
|
|
||||||
|
|
||||||
#import "KRVector2.h"
|
|
||||||
#import "KRCamera.h"
|
|
||||||
#import "KRStockGeometry.h"
|
|
||||||
#import "KRDirectionalLight.h"
|
|
||||||
|
|
||||||
KRCamera::KRCamera(KRScene &scene, std::string name) : KRNode(scene, name) {
|
KRCamera::KRCamera(KRScene &scene, std::string name) : KRNode(scene, name) {
|
||||||
m_particlesAbsoluteTime = 0.0f;
|
m_particlesAbsoluteTime = 0.0f;
|
||||||
|
|||||||
@@ -32,17 +32,17 @@
|
|||||||
#ifndef KRCAMERA_H
|
#ifndef KRCAMERA_H
|
||||||
#define KRCAMERA_H
|
#define KRCAMERA_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#import "KRVector2.h"
|
#include "KRVector2.h"
|
||||||
#import "KRAABB.h"
|
#include "KRAABB.h"
|
||||||
#import "KRShader.h"
|
#include "KRShader.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
#import "KRViewport.h"
|
#include "KRViewport.h"
|
||||||
#import "KRRenderSettings.h"
|
#include "KRRenderSettings.h"
|
||||||
|
|
||||||
class KRModel;
|
class KRModel;
|
||||||
class KRScene;
|
class KRScene;
|
||||||
|
|||||||
@@ -29,12 +29,12 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include "KRCollider.h"
|
#include "KRCollider.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
#import "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
#import "KRQuaternion.h"
|
#include "KRQuaternion.h"
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
KRCollider::KRCollider(KRScene &scene, std::string collider_name, std::string model_name, unsigned int layer_mask, float audio_occlusion) : KRNode(scene, collider_name) {
|
KRCollider::KRCollider(KRScene &scene, std::string collider_name, std::string model_name, unsigned int layer_mask, float audio_occlusion) : KRNode(scene, collider_name) {
|
||||||
m_model_name = model_name;
|
m_model_name = model_name;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#ifndef KRCOLLIDER_H
|
#ifndef KRCOLLIDER_H
|
||||||
#define KRCOLLIDER_H
|
#define KRCOLLIDER_H
|
||||||
@@ -37,16 +37,16 @@
|
|||||||
#define KRAKEN_COLLIDER_PHYSICS 1
|
#define KRAKEN_COLLIDER_PHYSICS 1
|
||||||
#define KRAKEN_COLLIDER_AUDIO 2
|
#define KRAKEN_COLLIDER_AUDIO 2
|
||||||
|
|
||||||
#import "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#import "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#import "KRModel.h"
|
#include "KRModel.h"
|
||||||
#import "KRCamera.h"
|
#include "KRCamera.h"
|
||||||
#import "KRMeshManager.h"
|
#include "KRMeshManager.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
#import "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
#import "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
|
|
||||||
class KRCollider : public KRNode {
|
class KRCollider : public KRNode {
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
#include "KRCamera.h"
|
#include "KRCamera.h"
|
||||||
|
|||||||
@@ -9,17 +9,17 @@
|
|||||||
#ifndef KREngine_KRContext_h
|
#ifndef KREngine_KRContext_h
|
||||||
#define KREngine_KRContext_h
|
#define KREngine_KRContext_h
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRBundleManager.h"
|
#include "KRBundleManager.h"
|
||||||
#import "KRSceneManager.h"
|
#include "KRSceneManager.h"
|
||||||
#import "KRTextureManager.h"
|
#include "KRTextureManager.h"
|
||||||
#import "KRMaterialManager.h"
|
#include "KRMaterialManager.h"
|
||||||
#import "KRShaderManager.h"
|
#include "KRShaderManager.h"
|
||||||
#import "KRMeshManager.h"
|
#include "KRMeshManager.h"
|
||||||
#import "KRAnimationManager.h"
|
#include "KRAnimationManager.h"
|
||||||
#import "KRAnimationCurveManager.h"
|
#include "KRAnimationCurveManager.h"
|
||||||
#import "KRAudioManager.h"
|
#include "KRAudioManager.h"
|
||||||
#import "KRUnknownManager.h"
|
#include "KRUnknownManager.h"
|
||||||
|
|
||||||
class KRContext {
|
class KRContext {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -29,15 +29,7 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#include <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
KRDataBlock::KRDataBlock() {
|
KRDataBlock::KRDataBlock() {
|
||||||
m_data = NULL;
|
m_data = NULL;
|
||||||
|
|||||||
@@ -32,6 +32,8 @@
|
|||||||
#ifndef KREngine_KRDataBlock_h
|
#ifndef KREngine_KRDataBlock_h
|
||||||
#define KREngine_KRDataBlock_h
|
#define KREngine_KRDataBlock_h
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
class KRDataBlock {
|
class KRDataBlock {
|
||||||
public:
|
public:
|
||||||
KRDataBlock();
|
KRDataBlock();
|
||||||
|
|||||||
@@ -6,14 +6,14 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#import "KRDirectionalLight.h"
|
#include "KRDirectionalLight.h"
|
||||||
#import "KRShader.h"
|
#include "KRShader.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#import "assert.h"
|
#include "assert.h"
|
||||||
#import "KRStockGeometry.h"
|
#include "KRStockGeometry.h"
|
||||||
|
|
||||||
KRDirectionalLight::KRDirectionalLight(KRScene &scene, std::string name) : KRLight(scene, name)
|
KRDirectionalLight::KRDirectionalLight(KRScene &scene, std::string name) : KRLight(scene, name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
#ifndef KREngine_KRDirectionalLight_h
|
#ifndef KREngine_KRDirectionalLight_h
|
||||||
#define KREngine_KRDirectionalLight_h
|
#define KREngine_KRDirectionalLight_h
|
||||||
|
|
||||||
#import "KRLight.h"
|
#include "KRLight.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
|
|
||||||
class KRDirectionalLight : public KRLight {
|
class KRDirectionalLight : public KRLight {
|
||||||
|
|
||||||
|
|||||||
@@ -16,27 +16,55 @@
|
|||||||
float const PI = 3.141592653589793f;
|
float const PI = 3.141592653589793f;
|
||||||
float const D2R = PI * 2 / 360;
|
float const D2R = PI * 2 / 360;
|
||||||
|
|
||||||
#import <stdint.h>
|
#include <stdint.h>
|
||||||
#import <vector>
|
#include <vector>
|
||||||
#import <string>
|
#include <string>
|
||||||
#import <set>
|
#include <set>
|
||||||
#import <list>
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
#include <stack>
|
||||||
|
#include <queue>
|
||||||
|
#include <iostream>
|
||||||
|
#include <sstream>
|
||||||
|
#include <fstream>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <limits>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <iostream>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
|
using std::set;
|
||||||
|
using std::list;
|
||||||
|
using std::map;
|
||||||
|
using std::stack;
|
||||||
|
using std::queue;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include "TargetConditionals.h"
|
#include "TargetConditionals.h"
|
||||||
#import <Accelerate/Accelerate.h>
|
#include <Accelerate/Accelerate.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
|
|
||||||
#import <OpenGLES/ES2/gl.h>
|
#include <OpenGLES/ES2/gl.h>
|
||||||
#import <OpenGLES/ES2/glext.h>
|
#include <OpenGLES/ES2/glext.h>
|
||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#import <OpenGL/gl3.h>
|
#include <OpenGL/gl3.h>
|
||||||
#import <OpenGL/gl3ext.h>
|
#include <OpenGL/gl3ext.h>
|
||||||
|
|
||||||
// OpenGL ES 2.0 mapping to OpenGL 3.2 mappings
|
// OpenGL ES 2.0 mapping to OpenGL 3.2 mappings
|
||||||
#define glDepthRangef glDepthRange
|
#define glDepthRangef glDepthRange
|
||||||
@@ -51,15 +79,16 @@ float const D2R = PI * 2 / 360;
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#import <AudioToolbox/AudioToolbox.h>
|
#include <AudioToolbox/AudioToolbox.h>
|
||||||
#import <AudioToolbox/AudioFile.h>
|
#include <AudioToolbox/AudioFile.h>
|
||||||
#import <AudioToolbox/ExtendedAudioFile.h>
|
#include <AudioToolbox/ExtendedAudioFile.h>
|
||||||
#import <OpenAL/al.h>
|
#include <OpenAL/al.h>
|
||||||
#import <OpenAL/alc.h>
|
#include <OpenAL/alc.h>
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
#import <OpenAL/oalMacOSX_OALExtensions.h>
|
#include <UIKit/UIKit.h>
|
||||||
|
#include <OpenAL/oalMacOSX_OALExtensions.h>
|
||||||
#else
|
#else
|
||||||
#import <OpenAL/MacOSX_OALExtensions.h>
|
#include <OpenAL/MacOSX_OALExtensions.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -29,16 +29,15 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
// #import "KRTextureManager.h"
|
// #include "KRTextureManager.h"
|
||||||
#import <map>
|
#include "KRMat4.h"
|
||||||
#import "KRMat4.h"
|
#include "KRVector3.h"
|
||||||
#import "KRVector3.h"
|
#include "KRMesh.h"
|
||||||
#import "KRMesh.h"
|
#include "KRScene.h"
|
||||||
#import "KRScene.h"
|
#include "KRContext.h"
|
||||||
#import "KRContext.h"
|
#include "KRCamera.h"
|
||||||
#import "KRCamera.h"
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
typedef enum KREngineParameterType {KRENGINE_PARAMETER_INT, KRENGINE_PARAMETER_FLOAT, KRENGINE_PARAMETER_BOOL} KREngineParameterType;
|
typedef enum KREngineParameterType {KRENGINE_PARAMETER_INT, KRENGINE_PARAMETER_FLOAT, KRENGINE_PARAMETER_BOOL} KREngineParameterType;
|
||||||
|
|
||||||
|
|||||||
@@ -29,16 +29,14 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <UIKit/UIKit.h>
|
|
||||||
|
|
||||||
#import "KREngine.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRVector3.h"
|
|
||||||
#import "KRScene.h"
|
|
||||||
#import "KRSceneManager.h"
|
|
||||||
#import "KRNode.h"
|
|
||||||
|
|
||||||
#import <string>
|
#include "KREngine.h"
|
||||||
#import <sstream>
|
#include "KRVector3.h"
|
||||||
|
#include "KRScene.h"
|
||||||
|
#include "KRSceneManager.h"
|
||||||
|
#include "KRNode.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@@ -32,8 +32,8 @@
|
|||||||
#ifndef KRHITINFO_H
|
#ifndef KRHITINFO_H
|
||||||
#define KRHITINFO_H
|
#define KRHITINFO_H
|
||||||
|
|
||||||
#import "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
|
|
||||||
class KRHitInfo {
|
class KRHitInfo {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -6,22 +6,20 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
#include "KRLight.h"
|
||||||
|
|
||||||
|
#include "KRNode.h"
|
||||||
|
#include "KRMat4.h"
|
||||||
|
#include "KRVector3.h"
|
||||||
|
#include "KRCamera.h"
|
||||||
|
#include "KRContext.h"
|
||||||
|
|
||||||
#import "KRLight.h"
|
#include "KRShaderManager.h"
|
||||||
|
#include "KRShader.h"
|
||||||
|
#include "KRStockGeometry.h"
|
||||||
|
|
||||||
#import "KRNode.h"
|
|
||||||
#import "KRMat4.h"
|
|
||||||
#import "KRVector3.h"
|
|
||||||
#import "KRCamera.h"
|
|
||||||
#import "KRContext.h"
|
|
||||||
|
|
||||||
#import "KRShaderManager.h"
|
|
||||||
#import "KRShader.h"
|
|
||||||
#import "KRStockGeometry.h"
|
|
||||||
#import "assert.h"
|
|
||||||
|
|
||||||
KRLight::KRLight(KRScene &scene, std::string name) : KRNode(scene, name)
|
KRLight::KRLight(KRScene &scene, std::string name) : KRNode(scene, name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
#ifndef KRLIGHT_H
|
#ifndef KRLIGHT_H
|
||||||
#define KRLIGHT_H
|
#define KRLIGHT_H
|
||||||
|
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
|
|
||||||
static const float KRLIGHT_MIN_INFLUENCE = 0.15f; // 0.05f
|
static const float KRLIGHT_MIN_INFLUENCE = 0.15f; // 0.05f
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,7 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "KREngine-common.h"
|
||||||
#include <string.h>
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#include "KRQuaternion.h"
|
#include "KRQuaternion.h"
|
||||||
|
|||||||
@@ -30,9 +30,9 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
#import "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#ifndef KRMAT4_I
|
#ifndef KRMAT4_I
|
||||||
#define KRMAT4_I
|
#define KRMAT4_I
|
||||||
|
|||||||
@@ -29,17 +29,12 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRMaterial.h"
|
#include "KRMaterial.h"
|
||||||
#include "KRTextureManager.h"
|
#include "KRTextureManager.h"
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#import "KRcontext.h"
|
#include "KRcontext.h"
|
||||||
|
|
||||||
KRMaterial::KRMaterial(KRContext &context, const char *szName) : KRResource(context, szName) {
|
KRMaterial::KRMaterial(KRContext &context, const char *szName) : KRResource(context, szName) {
|
||||||
strcpy(m_szName, szName);
|
strcpy(m_szName, szName);
|
||||||
@@ -83,7 +78,7 @@ std::string KRMaterial::getExtension() {
|
|||||||
bool KRMaterial::save(KRDataBlock &data) {
|
bool KRMaterial::save(KRDataBlock &data) {
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream.precision(std::numeric_limits<long double>::digits10);
|
stream.precision(std::numeric_limits<long double>::digits10);
|
||||||
stream.setf(ios::fixed,ios::floatfield);
|
stream.setf(std::ios::fixed,std::ios::floatfield);
|
||||||
|
|
||||||
stream << "newmtl " << m_szName;
|
stream << "newmtl " << m_szName;
|
||||||
stream << "\nka " << m_ambientColor.x << " " << m_ambientColor.y << " " << m_ambientColor.z;
|
stream << "\nka " << m_ambientColor.x << " " << m_ambientColor.y << " " << m_ambientColor.z;
|
||||||
|
|||||||
@@ -29,22 +29,16 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <stdint.h>
|
#include "KREngine-common.h"
|
||||||
#import <list>
|
|
||||||
#import <string>
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KRTexture.h"
|
||||||
|
#include "KRShaderManager.h"
|
||||||
using std::list;
|
#include "KRShader.h"
|
||||||
|
#include "KRCamera.h"
|
||||||
#import "KRTexture.h"
|
#include "KRResource.h"
|
||||||
#import "KRShaderManager.h"
|
#include "KRVector2.h"
|
||||||
#import "KRShader.h"
|
#include "KRScene.h"
|
||||||
#import "KRCamera.h"
|
#include "KRBone.h"
|
||||||
#import "KRResource.h"
|
|
||||||
#import "KRVector2.h"
|
|
||||||
#import "KRScene.h"
|
|
||||||
#import "KRBone.h"
|
|
||||||
|
|
||||||
#ifndef KRMATERIAL_H
|
#ifndef KRMATERIAL_H
|
||||||
#define KRMATERIAL_H
|
#define KRMATERIAL_H
|
||||||
|
|||||||
@@ -29,15 +29,9 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
#include "KRMaterialManager.h"
|
#include "KRMaterialManager.h"
|
||||||
|
|
||||||
#import <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
|
|
||||||
KRMaterialManager::KRMaterialManager(KRContext &context, KRTextureManager *pTextureManager, KRShaderManager *pShaderManager) : KRContextObject(context)
|
KRMaterialManager::KRMaterialManager(KRContext &context, KRTextureManager *pTextureManager, KRShaderManager *pShaderManager) : KRContextObject(context)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,15 +35,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRMaterial.h"
|
#include "KRMaterial.h"
|
||||||
#include "KRTextureManager.h"
|
#include "KRTextureManager.h"
|
||||||
|
|
||||||
#include "KRMaterialManager.h"
|
#include "KRMaterialManager.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#import <string>
|
|
||||||
|
|
||||||
using std::map;
|
using std::map;
|
||||||
|
|
||||||
|
|||||||
@@ -29,22 +29,15 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
|
|
||||||
#include "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#import "KRShader.h"
|
#include "KRShader.h"
|
||||||
#import "KRShaderManager.h"
|
#include "KRShaderManager.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
|
|
||||||
|
|
||||||
KRMesh::KRMesh(KRContext &context, std::string name) : KRResource(context, name) {
|
KRMesh::KRMesh(KRContext &context, std::string name) : KRResource(context, name) {
|
||||||
|
|||||||
@@ -28,20 +28,13 @@
|
|||||||
// authors and should not be interpreted as representing official policies, either expressed
|
// authors and should not be interpreted as representing official policies, either expressed
|
||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
#import <stdint.h>
|
#include "KREngine-common.h"
|
||||||
#import <vector>
|
|
||||||
#import <set>
|
|
||||||
#import <string>
|
|
||||||
#import "KRVector2.h"
|
|
||||||
#import "KRContext.h"
|
|
||||||
#import "KRBone.h"
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KRVector2.h"
|
||||||
|
#include "KRContext.h"
|
||||||
using std::vector;
|
#include "KRBone.h"
|
||||||
using std::set;
|
|
||||||
using std::list;
|
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#define MAX_VBO_SIZE 65535
|
#define MAX_VBO_SIZE 65535
|
||||||
#define KRENGINE_MAX_BONE_WEIGHTS_PER_VERTEX 4
|
#define KRENGINE_MAX_BONE_WEIGHTS_PER_VERTEX 4
|
||||||
@@ -53,10 +46,10 @@ using std::list;
|
|||||||
#ifndef KRMesh_I
|
#ifndef KRMesh_I
|
||||||
#define KRMesh_I
|
#define KRMesh_I
|
||||||
|
|
||||||
#import "KRMaterialManager.h"
|
#include "KRMaterialManager.h"
|
||||||
#import "KRCamera.h"
|
#include "KRCamera.h"
|
||||||
#import "KRViewport.h"
|
#include "KRViewport.h"
|
||||||
#import "KRHitInfo.h"
|
#include "KRHitInfo.h"
|
||||||
|
|
||||||
class KRMaterial;
|
class KRMaterial;
|
||||||
class KRNode;
|
class KRNode;
|
||||||
|
|||||||
@@ -29,12 +29,13 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "KRMeshManager.h"
|
#include "KREngine-common.h"
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#import "KRMesh.h"
|
#include "KRMeshManager.h"
|
||||||
#import "KRMeshCube.h"
|
|
||||||
#import "KRMeshSphere.h"
|
#include "KRMesh.h"
|
||||||
|
#include "KRMeshCube.h"
|
||||||
|
#include "KRMeshSphere.h"
|
||||||
|
|
||||||
KRMeshManager::KRMeshManager(KRContext &context) : KRContextObject(context) {
|
KRMeshManager::KRMeshManager(KRContext &context) : KRContextObject(context) {
|
||||||
m_currentVBO.vbo_handle = 0;
|
m_currentVBO.vbo_handle = 0;
|
||||||
|
|||||||
@@ -32,17 +32,13 @@
|
|||||||
#ifndef KRMESHMANAGER_H
|
#ifndef KRMESHMANAGER_H
|
||||||
#define KRMESHMANAGER_H
|
#define KRMESHMANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
class KRContext;
|
class KRContext;
|
||||||
class KRMesh;
|
class KRMesh;
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#import <string>
|
|
||||||
using std::map;
|
|
||||||
|
|
||||||
class KRMeshManager : public KRContextObject {
|
class KRMeshManager : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
static const int KRENGINE_MAX_VOLUMETRIC_PLANES=500;
|
static const int KRENGINE_MAX_VOLUMETRIC_PLANES=500;
|
||||||
|
|||||||
@@ -29,12 +29,12 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#import "KRModel.h"
|
|
||||||
#import "KRContext.h"
|
#include "KRModel.h"
|
||||||
#import "KRMesh.h"
|
#include "KRContext.h"
|
||||||
#import "KRQuaternion.h"
|
#include "KRMesh.h"
|
||||||
#include <assert.h>
|
#include "KRQuaternion.h"
|
||||||
|
|
||||||
KRModel::KRModel(KRScene &scene, std::string instance_name, std::string model_name, std::string light_map, float lod_min_coverage, bool receives_shadow, bool faces_camera) : KRNode(scene, instance_name) {
|
KRModel::KRModel(KRScene &scene, std::string instance_name, std::string model_name, std::string light_map, float lod_min_coverage, bool receives_shadow, bool faces_camera) : KRNode(scene, instance_name) {
|
||||||
m_lightMap = light_map;
|
m_lightMap = light_map;
|
||||||
|
|||||||
@@ -31,22 +31,22 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#ifndef KRMODEL_H
|
#ifndef KRMODEL_H
|
||||||
#define KRMODEL_H
|
#define KRMODEL_H
|
||||||
|
|
||||||
#import "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#import "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#import "KRModel.h"
|
#include "KRModel.h"
|
||||||
#import "KRCamera.h"
|
#include "KRCamera.h"
|
||||||
#import "KRMeshManager.h"
|
#include "KRMeshManager.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
#import "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
#import "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
#import "KRBone.h"
|
#include "KRBone.h"
|
||||||
|
|
||||||
class KRModel : public KRNode {
|
class KRModel : public KRNode {
|
||||||
|
|
||||||
|
|||||||
@@ -6,23 +6,21 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include <assert.h>
|
|
||||||
#include <limits>
|
|
||||||
|
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRPointLight.h"
|
#include "KRPointLight.h"
|
||||||
#import "KRSpotLight.h"
|
#include "KRSpotLight.h"
|
||||||
#import "KRDirectionalLight.h"
|
#include "KRDirectionalLight.h"
|
||||||
#import "KRModel.h"
|
#include "KRModel.h"
|
||||||
#import "KRCollider.h"
|
#include "KRCollider.h"
|
||||||
#import "KRParticleSystem.h"
|
#include "KRParticleSystem.h"
|
||||||
#import "KRParticleSystemNewtonian.h"
|
#include "KRParticleSystemNewtonian.h"
|
||||||
#import "KRAABB.h"
|
#include "KRAABB.h"
|
||||||
#import "KRQuaternion.h"
|
#include "KRQuaternion.h"
|
||||||
#import "KRBone.h"
|
#include "KRBone.h"
|
||||||
#import "KRAudioSource.h"
|
#include "KRAudioSource.h"
|
||||||
#import "KRReverbZone.h"
|
#include "KRReverbZone.h"
|
||||||
|
|
||||||
|
|
||||||
KRNode::KRNode(KRScene &scene, std::string name) : KRContextObject(scene.getContext())
|
KRNode::KRNode(KRScene &scene, std::string name) : KRContextObject(scene.getContext())
|
||||||
@@ -233,7 +231,7 @@ KRNode *KRNode::LoadXML(KRScene &scene, tinyxml2::XMLElement *e) {
|
|||||||
}
|
}
|
||||||
new_node = new KRModel(scene, szName, e->Attribute("mesh"), e->Attribute("light_map"), lod_min_coverage, receives_shadow, faces_camera);
|
new_node = new KRModel(scene, szName, e->Attribute("mesh"), e->Attribute("light_map"), lod_min_coverage, receives_shadow, faces_camera);
|
||||||
} else if(strcmp(szElementName, "collider") == 0) {
|
} else if(strcmp(szElementName, "collider") == 0) {
|
||||||
new_node = new KRCollider(scene, szName, e->Attribute("collider_name"), 65535, 1.0f);
|
new_node = new KRCollider(scene, szName, e->Attribute("mesh"), 65535, 1.0f);
|
||||||
} else if(strcmp(szElementName, "bone") == 0) {
|
} else if(strcmp(szElementName, "bone") == 0) {
|
||||||
new_node = new KRBone(scene, szName);
|
new_node = new KRBone(scene, szName);
|
||||||
} else if(strcmp(szElementName, "audio_source") == 0) {
|
} else if(strcmp(szElementName, "audio_source") == 0) {
|
||||||
|
|||||||
@@ -9,11 +9,10 @@
|
|||||||
#ifndef KRNODE_H
|
#ifndef KRNODE_H
|
||||||
#define KRNODE_H
|
#define KRNODE_H
|
||||||
|
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#import "KRViewport.h"
|
#include "KRViewport.h"
|
||||||
#import "tinyxml2.h"
|
#include "tinyxml2.h"
|
||||||
#import <stack.h>
|
|
||||||
|
|
||||||
class KRCamera;
|
class KRCamera;
|
||||||
class KRShaderManager;
|
class KRShaderManager;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef KROCTREE_H
|
#ifndef KROCTREE_H
|
||||||
#define KROCTREE_H
|
#define KROCTREE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#include "KROctreeNode.h"
|
#include "KROctreeNode.h"
|
||||||
#include "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#include "KRHitInfo.h"
|
#include "KRHitInfo.h"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef KROCTREENODE_H
|
#ifndef KROCTREENODE_H
|
||||||
#define KROCTREENODE_H
|
#define KROCTREENODE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#include "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#include "KRAABB.h"
|
#include "KRAABB.h"
|
||||||
#include "KRHitInfo.h"
|
#include "KRHitInfo.h"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef KRPARTICLESYSTEM_H
|
#ifndef KRPARTICLESYSTEM_H
|
||||||
#define KRPARTICLESYSTEM_H
|
#define KRPARTICLESYSTEM_H
|
||||||
|
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
|
|
||||||
class KRParticleSystem : public KRNode {
|
class KRParticleSystem : public KRNode {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef KRPARTICLESYSTEMNEWTONIAN_H
|
#ifndef KRPARTICLESYSTEMNEWTONIAN_H
|
||||||
#define KRPARTICLESYSTEMNEWTONIAN_H
|
#define KRPARTICLESYSTEMNEWTONIAN_H
|
||||||
|
|
||||||
#import "KRParticleSystem.h"
|
#include "KRParticleSystem.h"
|
||||||
|
|
||||||
class KRParticleSystemNewtonian : public KRParticleSystem {
|
class KRParticleSystemNewtonian : public KRParticleSystem {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -6,16 +6,14 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#import "KRPointLight.h"
|
#include "KRPointLight.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#import "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
#import "KRCamera.h"
|
#include "KRCamera.h"
|
||||||
#import "KRContext.h"
|
#include "KRContext.h"
|
||||||
#import "KRStockGeometry.h"
|
#include "KRStockGeometry.h"
|
||||||
#import "assert.h"
|
|
||||||
|
|
||||||
KRPointLight::KRPointLight(KRScene &scene, std::string name) : KRLight(scene, name)
|
KRPointLight::KRPointLight(KRScene &scene, std::string name) : KRLight(scene, name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
#ifndef KRPOINTLIGHT_H
|
#ifndef KRPOINTLIGHT_H
|
||||||
#define KRPOINTLIGHT_H
|
#define KRPOINTLIGHT_H
|
||||||
|
|
||||||
#import "KRLight.h"
|
#include "KRLight.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
|
|
||||||
class KRPointLight : public KRLight {
|
class KRPointLight : public KRLight {
|
||||||
|
|
||||||
|
|||||||
@@ -31,10 +31,9 @@
|
|||||||
|
|
||||||
#ifndef KRQUATERNION_H
|
#ifndef KRQUATERNION_H
|
||||||
#define KRQUATERNION_H
|
#define KRQUATERNION_H
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
|
|
||||||
class KRVector3;
|
class KRVector3;
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include "KRResource.h"
|
#include "KRResource.h"
|
||||||
#include "KRScene.h"
|
#include "KRScene.h"
|
||||||
|
|||||||
@@ -6,18 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <sstream>
|
|
||||||
#include <assert.h>
|
|
||||||
#include <vector.h>
|
|
||||||
|
|
||||||
#include <fbxsdk.h>
|
#include <fbxsdk.h>
|
||||||
|
|
||||||
@@ -121,8 +110,10 @@ std::vector<KRResource *> KRResource::LoadFbx(KRContext &context, const std::str
|
|||||||
FbxAnimStack *animation = pFbxScene->GetSrcObject<FbxAnimStack>(i);
|
FbxAnimStack *animation = pFbxScene->GetSrcObject<FbxAnimStack>(i);
|
||||||
printf(" Animation %i of %i: %s\n", i+1, animation_count, animation->GetName());
|
printf(" Animation %i of %i: %s\n", i+1, animation_count, animation->GetName());
|
||||||
KRAnimation *new_animation = LoadAnimation(context, animation);
|
KRAnimation *new_animation = LoadAnimation(context, animation);
|
||||||
context.getAnimationManager()->addAnimation(new_animation);
|
if(new_animation) {
|
||||||
resources.push_back(new_animation);
|
context.getAnimationManager()->addAnimation(new_animation);
|
||||||
|
resources.push_back(new_animation);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----====---- Import Animation Curves ----====----
|
// ----====---- Import Animation Curves ----====----
|
||||||
@@ -132,8 +123,10 @@ std::vector<KRResource *> KRResource::LoadFbx(KRContext &context, const std::str
|
|||||||
FbxAnimCurve *curve = pFbxScene->GetSrcObject<FbxAnimCurve>(i);
|
FbxAnimCurve *curve = pFbxScene->GetSrcObject<FbxAnimCurve>(i);
|
||||||
printf(" Animation Curve %i of %i: %s\n", i+1, curve_count, curve->GetName());
|
printf(" Animation Curve %i of %i: %s\n", i+1, curve_count, curve->GetName());
|
||||||
KRAnimationCurve *new_curve = LoadAnimationCurve(context, curve);
|
KRAnimationCurve *new_curve = LoadAnimationCurve(context, curve);
|
||||||
context.getAnimationCurveManager()->addAnimationCurve(new_curve);
|
if(new_curve) {
|
||||||
resources.push_back(new_curve);
|
context.getAnimationCurveManager()->addAnimationCurve(new_curve);
|
||||||
|
resources.push_back(new_curve);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----====---- Import Meshes ----====----
|
// ----====---- Import Meshes ----====----
|
||||||
@@ -179,7 +172,7 @@ std::vector<KRResource *> KRResource::LoadFbx(KRContext &context, const std::str
|
|||||||
KRBundle *main_bundle = new KRBundle(context, base_name);
|
KRBundle *main_bundle = new KRBundle(context, base_name);
|
||||||
KRBundle texture_bundle(context, base_name + "_textures");
|
KRBundle texture_bundle(context, base_name + "_textures");
|
||||||
KRBundle animation_bundle(context, base_name + "_animations");
|
KRBundle animation_bundle(context, base_name + "_animations");
|
||||||
// KRBundle material_bundle(context, base_name + "_materials");
|
KRBundle material_bundle(context, base_name + "_materials");
|
||||||
KRBundle meshes_bundle(context, base_name + "_meshes");
|
KRBundle meshes_bundle(context, base_name + "_meshes");
|
||||||
|
|
||||||
for(std::vector<KRResource *>::iterator resource_itr=resources.begin(); resource_itr != resources.end(); resource_itr++) {
|
for(std::vector<KRResource *>::iterator resource_itr=resources.begin(); resource_itr != resources.end(); resource_itr++) {
|
||||||
@@ -188,8 +181,10 @@ std::vector<KRResource *> KRResource::LoadFbx(KRContext &context, const std::str
|
|||||||
texture_bundle.append(*resource);
|
texture_bundle.append(*resource);
|
||||||
} else if(dynamic_cast<KRAnimation *>(resource) != NULL) {
|
} else if(dynamic_cast<KRAnimation *>(resource) != NULL) {
|
||||||
animation_bundle.append(*resource);
|
animation_bundle.append(*resource);
|
||||||
// } else if(dynamic_cast<KRMaterial *>(resource) != NULL) {
|
} else if(dynamic_cast<KRAnimationCurve *>(resource) != NULL) {
|
||||||
// material_bundle.append(*resource);
|
animation_bundle.append(*resource);
|
||||||
|
} else if(dynamic_cast<KRMaterial *>(resource) != NULL) {
|
||||||
|
material_bundle.append(*resource);
|
||||||
} else if(dynamic_cast<KRMesh *>(resource) != NULL) {
|
} else if(dynamic_cast<KRMesh *>(resource) != NULL) {
|
||||||
meshes_bundle.append(*resource);
|
meshes_bundle.append(*resource);
|
||||||
} else {
|
} else {
|
||||||
@@ -199,7 +194,7 @@ std::vector<KRResource *> KRResource::LoadFbx(KRContext &context, const std::str
|
|||||||
|
|
||||||
main_bundle->append(texture_bundle);
|
main_bundle->append(texture_bundle);
|
||||||
main_bundle->append(animation_bundle);
|
main_bundle->append(animation_bundle);
|
||||||
// main_bundle->append(material_bundle);
|
main_bundle->append(material_bundle);
|
||||||
main_bundle->append(meshes_bundle);
|
main_bundle->append(meshes_bundle);
|
||||||
|
|
||||||
std::vector<KRResource *> output_resources;
|
std::vector<KRResource *> output_resources;
|
||||||
|
|||||||
@@ -6,15 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
#include "KRResource.h"
|
#include "KRResource.h"
|
||||||
#include "KRMesh.h"
|
#include "KRMesh.h"
|
||||||
|
|||||||
@@ -6,9 +6,8 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
|
#include "KRResource.h"
|
||||||
#import "KRResource.h"
|
|
||||||
|
|
||||||
KRResource::KRResource(KRContext &context, std::string name) : KRContextObject(context) {
|
KRResource::KRResource(KRContext &context, std::string name) : KRContextObject(context) {
|
||||||
m_name = name;
|
m_name = name;
|
||||||
|
|||||||
@@ -6,14 +6,9 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <stdint.h>
|
#include "KREngine-common.h"
|
||||||
#import <vector>
|
#include "KRContextObject.h"
|
||||||
#import <set>
|
#include "KRDataBlock.h"
|
||||||
#import <list>
|
|
||||||
#import <string>
|
|
||||||
#import "KREngine-common.h"
|
|
||||||
#import "KRContextObject.h"
|
|
||||||
#import "KRDataBlock.h"
|
|
||||||
|
|
||||||
#ifndef KRRESOURCE_H
|
#ifndef KRRESOURCE_H
|
||||||
#define KRRESOURCE_H
|
#define KRRESOURCE_H
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
#ifndef KRREVERB_ZONE_H
|
#ifndef KRREVERB_ZONE_H
|
||||||
#define KRREVERB_ZONE_H
|
#define KRREVERB_ZONE_H
|
||||||
|
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import "KRNode.h"
|
#include "KRNode.h"
|
||||||
#import "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
|
|
||||||
class KRReverbZone : public KRNode {
|
class KRReverbZone : public KRNode {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -29,21 +29,20 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
|
#include "KRVector3.h"
|
||||||
|
#include "KRMat4.h"
|
||||||
|
#include "tinyxml2.h"
|
||||||
|
|
||||||
#import "KRVector3.h"
|
#include "KRLight.h"
|
||||||
#import "KRMat4.h"
|
|
||||||
#import "tinyxml2.h"
|
|
||||||
|
|
||||||
#import "KRLight.h"
|
#include "KRScene.h"
|
||||||
|
#include "KRNode.h"
|
||||||
#import "KRScene.h"
|
#include "KRStockGeometry.h"
|
||||||
#import "KRNode.h"
|
#include "KRDirectionalLight.h"
|
||||||
#import "KRStockGeometry.h"
|
#include "KRSpotLight.h"
|
||||||
#import "KRDirectionalLight.h"
|
#include "KRPointLight.h"
|
||||||
#import "KRSpotLight.h"
|
#include "KRQuaternion.h"
|
||||||
#import "KRPointLight.h"
|
|
||||||
#import "KRQuaternion.h"
|
|
||||||
|
|
||||||
const long KRENGINE_OCCLUSION_TEST_EXPIRY = 60;
|
const long KRENGINE_OCCLUSION_TEST_EXPIRY = 60;
|
||||||
|
|
||||||
|
|||||||
@@ -32,16 +32,15 @@
|
|||||||
#ifndef KRSCENE_H
|
#ifndef KRSCENE_H
|
||||||
#define KRSCENE_H
|
#define KRSCENE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#import <vector>
|
#include "KRModel.h"
|
||||||
#import "KRModel.h"
|
#include "KRMat4.h"
|
||||||
#import "KRMat4.h"
|
#include "KRMesh.h"
|
||||||
#import "KRMesh.h"
|
#include "KRCamera.h"
|
||||||
#import "KRCamera.h"
|
#include "KRMeshManager.h"
|
||||||
#import "KRMeshManager.h"
|
#include "KRNode.h"
|
||||||
#import "KRNode.h"
|
#include "KROctree.h"
|
||||||
#import "KROctree.h"
|
|
||||||
class KRModel;
|
class KRModel;
|
||||||
class KRLight;
|
class KRLight;
|
||||||
|
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "KRSceneManager.h"
|
#include "KRSceneManager.h"
|
||||||
#import "KRScene.h"
|
#include "KRScene.h"
|
||||||
|
|
||||||
KRSceneManager::KRSceneManager(KRContext &context) : KRContextObject(context){
|
KRSceneManager::KRSceneManager(KRContext &context) : KRContextObject(context){
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,16 +32,12 @@
|
|||||||
#ifndef KRENGINE_KRSCENEMANAGER_H
|
#ifndef KRENGINE_KRSCENEMANAGER_H
|
||||||
#define KRENGINE_KRSCENEMANAGER_H
|
#define KRENGINE_KRSCENEMANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
class KRScene;
|
class KRScene;
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#import <string>
|
|
||||||
using std::map;
|
|
||||||
|
|
||||||
|
|
||||||
class KRSceneManager : public KRContextObject {
|
class KRSceneManager : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "KRShader.h"
|
#include "KRShader.h"
|
||||||
#import "assert.h"
|
#include "assert.h"
|
||||||
#include "KRLight.h"
|
#include "KRLight.h"
|
||||||
#include "KRDirectionalLight.h"
|
#include "KRDirectionalLight.h"
|
||||||
#include "KRSpotLight.h"
|
#include "KRSpotLight.h"
|
||||||
|
|||||||
@@ -29,24 +29,17 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <stdint.h>
|
|
||||||
#import <vector>
|
|
||||||
#import <string>
|
|
||||||
#import <stack>
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
|
||||||
|
|
||||||
|
|
||||||
using std::vector;
|
|
||||||
|
|
||||||
#ifndef KRSHADER_H
|
#ifndef KRSHADER_H
|
||||||
#define KRSHADER_H
|
#define KRSHADER_H
|
||||||
|
|
||||||
#import "KRShader.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRMat4.h"
|
#include "KRShader.h"
|
||||||
#import "KRCamera.h"
|
#include "KRMat4.h"
|
||||||
#import "KRNode.h"
|
#include "KRCamera.h"
|
||||||
#import "KRViewport.h"
|
#include "KRNode.h"
|
||||||
|
#include "KRViewport.h"
|
||||||
|
|
||||||
class KRShader : public KRContextObject {
|
class KRShader : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -29,11 +29,9 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "KRShaderManager.h"
|
#include "KREngine-common.h"
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
|
||||||
#include <fstream>
|
|
||||||
|
|
||||||
|
#include "KRShaderManager.h"
|
||||||
#include "KRLight.h"
|
#include "KRLight.h"
|
||||||
#include "KRDirectionalLight.h"
|
#include "KRDirectionalLight.h"
|
||||||
#include "KRSpotLight.h"
|
#include "KRSpotLight.h"
|
||||||
|
|||||||
@@ -29,13 +29,12 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <stdint.h>
|
|
||||||
#import <vector>
|
#include "KREngine-common.h"
|
||||||
#import <map>
|
|
||||||
#import <string>
|
#include "KRCamera.h"
|
||||||
#import "KRCamera.h"
|
#include "KRDataBlock.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRNode.h"
|
||||||
#import "KRNode.h"
|
|
||||||
|
|
||||||
using std::map;
|
using std::map;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|||||||
@@ -6,9 +6,8 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
|
#include "KRSpotLight.h"
|
||||||
#import "KRSpotLight.h"
|
|
||||||
|
|
||||||
KRSpotLight::KRSpotLight(KRScene &scene, std::string name) : KRLight(scene, name)
|
KRSpotLight::KRSpotLight(KRScene &scene, std::string name) : KRLight(scene, name)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef KREngine_KRSpotLight_h
|
#ifndef KREngine_KRSpotLight_h
|
||||||
#define KREngine_KRSpotLight_h
|
#define KREngine_KRSpotLight_h
|
||||||
|
|
||||||
#import "KRLight.h"
|
#include "KRLight.h"
|
||||||
|
|
||||||
class KRSpotLight : public KRLight {
|
class KRSpotLight : public KRLight {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <assert.h>
|
#include "KREngine-common.h"
|
||||||
#include "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
|
|||||||
@@ -34,9 +34,9 @@
|
|||||||
#ifndef KRTEXTURE_H
|
#ifndef KRTEXTURE_H
|
||||||
#define KRTEXTURE_H
|
#define KRTEXTURE_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
|
|
||||||
|
|
||||||
class KRDataBlock;
|
class KRDataBlock;
|
||||||
|
|||||||
@@ -29,18 +29,10 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
#include "KRTexture2D.h"
|
#include "KRTexture2D.h"
|
||||||
#include "KRTextureManager.h"
|
#include "KRTextureManager.h"
|
||||||
|
|
||||||
#import <stdint.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#import <stdint.h>
|
|
||||||
#import <assert.h>
|
|
||||||
|
|
||||||
KRTexture2D::KRTexture2D(KRContext &context, KRDataBlock *data, std::string name) : KRTexture(context, name) {
|
KRTexture2D::KRTexture2D(KRContext &context, KRDataBlock *data, std::string name) : KRTexture(context, name) {
|
||||||
m_current_lod_max_dim = 0;
|
m_current_lod_max_dim = 0;
|
||||||
m_pData = data;
|
m_pData = data;
|
||||||
|
|||||||
@@ -29,12 +29,8 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <stdint.h>
|
#include "KREngine-common.h"
|
||||||
#import <list>
|
#include "KRDataBlock.h"
|
||||||
#import <string>
|
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
|
||||||
#import "KRDataBlock.h"
|
|
||||||
|
|
||||||
using std::list;
|
using std::list;
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <assert.h>
|
#include "KREngine-common.h"
|
||||||
#include "KRTextureAnimated.h"
|
#include "KRTextureAnimated.h"
|
||||||
#include "KRTexture2D.h"
|
#include "KRTexture2D.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <assert.h>
|
|
||||||
#include "KRTextureCube.h"
|
#include "KRTextureCube.h"
|
||||||
#include "KRTexture2D.h"
|
#include "KRTexture2D.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
#include "KRTextureManager.h"
|
#include "KRTextureManager.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
#include "KRTexture2D.h"
|
#include "KRTexture2D.h"
|
||||||
@@ -37,7 +38,6 @@
|
|||||||
#include "KRTextureCube.h"
|
#include "KRTextureCube.h"
|
||||||
#include "KRTextureAnimated.h"
|
#include "KRTextureAnimated.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
KRTextureManager::KRTextureManager(KRContext &context) : KRContextObject(context) {
|
KRTextureManager::KRTextureManager(KRContext &context) : KRContextObject(context) {
|
||||||
m_textureMemUsed = 0;
|
m_textureMemUsed = 0;
|
||||||
|
|||||||
@@ -32,18 +32,14 @@
|
|||||||
#ifndef KRTEXTUREMANAGER_H
|
#ifndef KRTEXTUREMANAGER_H
|
||||||
#define KRTEXTUREMANAGER_H
|
#define KRTEXTUREMANAGER_H
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRTexture.h"
|
#include "KRTexture.h"
|
||||||
#include "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#include "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#include "KRContext.h"
|
#include "KRContext.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#import <string>
|
|
||||||
|
|
||||||
using std::map;
|
|
||||||
|
|
||||||
class KRTextureManager : public KRContextObject {
|
class KRTextureManager : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
KRTextureManager(KRContext &context);
|
KRTextureManager(KRContext &context);
|
||||||
|
|||||||
@@ -32,15 +32,7 @@
|
|||||||
#include "KRTexturePVR.h"
|
#include "KRTexturePVR.h"
|
||||||
#include "KRTextureManager.h"
|
#include "KRTextureManager.h"
|
||||||
|
|
||||||
#import <stdint.h>
|
#include "KREngine-common.h"
|
||||||
#include <sys/mman.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/stat.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#import <stdint.h>
|
|
||||||
#import <assert.h>
|
|
||||||
#import "KREngine-common.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define PVR_TEXTURE_FLAG_TYPE_MASK 0xff
|
#define PVR_TEXTURE_FLAG_TYPE_MASK 0xff
|
||||||
|
|||||||
@@ -32,11 +32,10 @@
|
|||||||
#ifndef KRUNKNOWN_H
|
#ifndef KRUNKNOWN_H
|
||||||
#define KRUNKNOWN_H
|
#define KRUNKNOWN_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
#import "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#import "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
#import "KRResource.h"
|
#include "KRResource.h"
|
||||||
#import <map>
|
|
||||||
|
|
||||||
class KRUnknown : public KRResource {
|
class KRUnknown : public KRResource {
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ void KRUnknownManager::add(KRUnknown *unknown)
|
|||||||
|
|
||||||
map<std::string, map<std::string, KRUnknown *> >::iterator extension_itr = m_unknowns.find(lower_extension);
|
map<std::string, map<std::string, KRUnknown *> >::iterator extension_itr = m_unknowns.find(lower_extension);
|
||||||
if(extension_itr == m_unknowns.end()) {
|
if(extension_itr == m_unknowns.end()) {
|
||||||
m_unknowns[lower_name] = map<std::string, KRUnknown *>();
|
m_unknowns[lower_extension] = map<std::string, KRUnknown *>();
|
||||||
extension_itr = m_unknowns.find(lower_extension);
|
extension_itr = m_unknowns.find(lower_extension);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ void KRUnknownManager::add(KRUnknown *unknown)
|
|||||||
delete (*name_itr).second;
|
delete (*name_itr).second;
|
||||||
(*name_itr).second = unknown;
|
(*name_itr).second = unknown;
|
||||||
} else {
|
} else {
|
||||||
(*extension_itr).second[lower_extension] = unknown;
|
(*extension_itr).second[lower_name] = unknown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,19 +32,12 @@
|
|||||||
#ifndef KRUNKNOWN_MANAGER_H
|
#ifndef KRUNKNOWN_MANAGER_H
|
||||||
#define KRUNKNOWN_MANAGER_H
|
#define KRUNKNOWN_MANAGER_H
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
#include "KRUnknown.h"
|
#include "KRUnknown.h"
|
||||||
#include "KRContextObject.h"
|
#include "KRContextObject.h"
|
||||||
#include "KRDataBlock.h"
|
#include "KRDataBlock.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <set>
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
using std::map;
|
|
||||||
using std::set;
|
|
||||||
|
|
||||||
class KRUnknownManager : public KRContextObject {
|
class KRUnknownManager : public KRContextObject {
|
||||||
public:
|
public:
|
||||||
KRUnknownManager(KRContext &context);
|
KRUnknownManager(KRContext &context);
|
||||||
|
|||||||
@@ -6,8 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <iostream>
|
#include "KREngine-common.h"
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "KRVector2.h"
|
#include "KRVector2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
#ifndef KRVECTOR2
|
#ifndef KRVECTOR2
|
||||||
#define KRVECTOR2
|
#define KRVECTOR2
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
class KRVector2 {
|
class KRVector2 {
|
||||||
|
|
||||||
|
|||||||
@@ -29,11 +29,9 @@
|
|||||||
// or implied, of Kearwood Gilbert.
|
// or implied, of Kearwood Gilbert.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
#include "KRVector3.h"
|
#include "KRVector3.h"
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#include <limits.h>
|
|
||||||
|
|
||||||
//default constructor
|
//default constructor
|
||||||
KRVector3::KRVector3()
|
KRVector3::KRVector3()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
#ifndef KRVECTOR3
|
#ifndef KRVECTOR3
|
||||||
#define KRVECTOR3
|
#define KRVECTOR3
|
||||||
|
|
||||||
#import "KREngine-common.h"
|
#include "KREngine-common.h"
|
||||||
|
|
||||||
class KRVector3 {
|
class KRVector3 {
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
#ifndef KRENGINE_KRVIEWPORT_H
|
#ifndef KRENGINE_KRVIEWPORT_H
|
||||||
#define KRENGINE_KRVIEWPORT_H
|
#define KRENGINE_KRVIEWPORT_H
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
#include "KRVector2.h"
|
#include "KRVector2.h"
|
||||||
#include "KRMat4.h"
|
#include "KRMat4.h"
|
||||||
#include "KRAABB.h"
|
#include "KRAABB.h"
|
||||||
#include <map.h>
|
|
||||||
|
|
||||||
class KRLight;
|
class KRLight;
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#ifdef __OBJC__
|
#ifdef __OBJC__
|
||||||
#import <Foundation/Foundation.h>
|
#include <Foundation/Foundation.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
@@ -3,5 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#ifdef __OBJC__
|
#ifdef __OBJC__
|
||||||
#import <Cocoa/Cocoa.h>
|
#include <Cocoa/Cocoa.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "KREngine-common.h"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
@interface krengine_osx : NSObject
|
@interface krengine_osx : NSObject
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import "krengine_osx.h"
|
#include "krengine_osx.h"
|
||||||
|
|
||||||
@implementation krengine_osx
|
@implementation krengine_osx
|
||||||
|
|
||||||
Reference in New Issue
Block a user