rename .hpp headers to .h

This commit is contained in:
2017-01-31 22:48:55 +00:00
parent 4b26976d61
commit 39f44eca5e
19 changed files with 49 additions and 41 deletions

View File

@@ -183,13 +183,13 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="engine\app.hpp" />
<ClInclude Include="engine\image.hpp" />
<ClInclude Include="engine\app.h" />
<ClInclude Include="engine\image.h" />
<ClInclude Include="engine\layout.h" />
<ClInclude Include="engine\pch.h" />
<ClInclude Include="engine\shader.hpp" />
<ClInclude Include="engine\shape.hpp" />
<ClInclude Include="engine\texture.hpp" />
<ClInclude Include="engine\shader.h" />
<ClInclude Include="engine\shape.h" />
<ClInclude Include="engine\texture.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">

View File

@@ -50,22 +50,22 @@
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="engine\app.hpp">
<ClInclude Include="engine\app.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="engine\image.hpp">
<ClInclude Include="engine\image.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="engine\pch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="engine\shader.hpp">
<ClInclude Include="engine\shader.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="engine\shape.hpp">
<ClInclude Include="engine\shape.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="engine\texture.hpp">
<ClInclude Include="engine\texture.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="engine\layout.h">

View File

@@ -49,21 +49,21 @@
AD58E05F1E12DA86006ACC15 /* CoreVideo.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreVideo.framework; path = System/Library/Frameworks/CoreVideo.framework; sourceTree = SDKROOT; };
AD58E0611E17F23D006ACC15 /* data */ = {isa = PBXFileReference; lastKnownFileType = folder; path = data; sourceTree = "<group>"; };
AD58E0631E2A76FD006ACC15 /* shader.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = shader.cpp; sourceTree = "<group>"; };
AD58E0641E2A76FD006ACC15 /* shader.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = shader.hpp; sourceTree = "<group>"; };
AD58E0641E2A76FD006ACC15 /* shader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = shader.h; sourceTree = "<group>"; };
AD58E0661E2A7741006ACC15 /* image.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = image.cpp; sourceTree = "<group>"; };
AD58E0671E2A7741006ACC15 /* image.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = image.hpp; sourceTree = "<group>"; };
AD58E0671E2A7741006ACC15 /* image.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = image.h; sourceTree = "<group>"; };
AD58E0691E2A774F006ACC15 /* texture.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = texture.cpp; sourceTree = "<group>"; };
AD58E06A1E2A774F006ACC15 /* texture.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = texture.hpp; sourceTree = "<group>"; };
AD58E06A1E2A774F006ACC15 /* texture.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = texture.h; sourceTree = "<group>"; };
AD58E06C1E2A78BD006ACC15 /* pch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pch.h; sourceTree = "<group>"; };
AD58E06D1E2A80BC006ACC15 /* shape.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = shape.cpp; sourceTree = "<group>"; };
AD58E06E1E2A80BC006ACC15 /* shape.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = shape.hpp; sourceTree = "<group>"; };
AD58E06E1E2A80BC006ACC15 /* shape.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = shape.h; sourceTree = "<group>"; };
AD58E0701E2A90EF006ACC15 /* app.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = app.cpp; sourceTree = "<group>"; };
AD58E0711E2A90EF006ACC15 /* app.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = app.hpp; sourceTree = "<group>"; };
AD58E0711E2A90EF006ACC15 /* app.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = app.h; sourceTree = "<group>"; };
AD58E0741E3421F2006ACC15 /* YGNodeList.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = YGNodeList.c; path = libs/yoga/yoga/YGNodeList.c; sourceTree = "<group>"; };
AD58E0751E3421F2006ACC15 /* Yoga.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = Yoga.c; path = libs/yoga/yoga/Yoga.c; sourceTree = "<group>"; };
AD58E0781E342205006ACC15 /* tinyxml2.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = tinyxml2.cpp; path = libs/tinyxml2/tinyxml2.cpp; sourceTree = "<group>"; };
ADB61C801E3D38450093280F /* util.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = util.cpp; sourceTree = "<group>"; };
ADB61C811E3D38450093280F /* util.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = util.hpp; sourceTree = "<group>"; };
ADB61C811E3D38450093280F /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = util.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -109,18 +109,18 @@
AD3B1EBE1E3B8B7600E918E3 /* layout.cpp */,
AD3B1EBF1E3B8B7600E918E3 /* layout.h */,
AD58E0631E2A76FD006ACC15 /* shader.cpp */,
AD58E0641E2A76FD006ACC15 /* shader.hpp */,
AD58E0641E2A76FD006ACC15 /* shader.h */,
AD58E0521E107411006ACC15 /* main.cpp */,
AD58E06D1E2A80BC006ACC15 /* shape.cpp */,
AD58E06E1E2A80BC006ACC15 /* shape.hpp */,
AD58E06E1E2A80BC006ACC15 /* shape.h */,
AD58E0701E2A90EF006ACC15 /* app.cpp */,
AD58E0711E2A90EF006ACC15 /* app.hpp */,
AD58E0711E2A90EF006ACC15 /* app.h */,
AD58E0661E2A7741006ACC15 /* image.cpp */,
AD58E0671E2A7741006ACC15 /* image.hpp */,
AD58E0671E2A7741006ACC15 /* image.h */,
AD58E0691E2A774F006ACC15 /* texture.cpp */,
AD58E06A1E2A774F006ACC15 /* texture.hpp */,
AD58E06A1E2A774F006ACC15 /* texture.h */,
ADB61C801E3D38450093280F /* util.cpp */,
ADB61C811E3D38450093280F /* util.hpp */,
ADB61C811E3D38450093280F /* util.h */,
AD58E06C1E2A78BD006ACC15 /* pch.h */,
);
path = engine;

View File

@@ -1,5 +1,5 @@
#include "pch.h"
#include "app.hpp"
#include "app.h"
App App::I; // singleton

View File

@@ -1,8 +1,8 @@
#pragma once
#include "shader.hpp"
#include "shape.hpp"
#include "texture.hpp"
#include "shader.h"
#include "shape.h"
#include "texture.h"
#include "layout.h"
class App

4
engine/font.cpp Normal file
View File

@@ -0,0 +1,4 @@
#include "font.h"

4
engine/font.h Normal file
View File

@@ -0,0 +1,4 @@
#pragma once

View File

@@ -1,5 +1,5 @@
#include "pch.h"
#include "image.hpp"
#include "image.h"
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.h>

View File

@@ -1,6 +1,6 @@
#include "pch.h"
#include "layout.h"
#include "util.hpp"
#include "util.h"
Plane WidgetBorder::m_plane;

View File

@@ -1,7 +1,7 @@
#pragma once
#include "shape.hpp"
#include "util.hpp"
#include "shader.hpp"
#include "shape.h"
#include "util.h"
#include "shader.h"
enum class kAttribute : uint16_t
{

View File

@@ -1,9 +1,9 @@
#include "pch.h"
#include "shader.hpp"
#include "shape.hpp"
#include "texture.hpp"
#include "image.hpp"
#include "app.hpp"
#include "shader.h"
#include "shape.h"
#include "texture.h"
#include "image.h"
#include "app.h"
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>

View File

@@ -1,5 +1,5 @@
#include "pch.h"
#include "shader.hpp"
#include "shader.h"
std::map<kShader, Shader> ShaderManager::m_shaders;
Shader* ShaderManager::m_current;

View File

@@ -1,5 +1,5 @@
#pragma once
#include "util.hpp"
#include "util.h"
enum class kShaderUniform : uint16_t
{

View File

@@ -1,5 +1,5 @@
#include "pch.h"
#include "shape.hpp"
#include "shape.h"
bool Shape::create_buffers(GLvoid* idx, GLvoid* vertices, int isize, int vsize)
{

View File

@@ -1,6 +1,6 @@
#include "pch.h"
#include "texture.hpp"
#include "image.hpp"
#include "texture.h"
#include "image.h"
bool Texture2D::create(int width, int height, GLint format, const uint8_t* data)
{