Compare commits

...

2 Commits

Author SHA1 Message Date
c3fa504c29 Ignore 2023-02-25 16:06:29 -05:00
4efefa976a General fixes 2023-02-25 16:04:37 -05:00
6 changed files with 159 additions and 6 deletions

View File

@ -1,5 +1,9 @@
# depslib dependency file v1.0 # depslib dependency file v1.0
<<<<<<< HEAD
1672107417 source:c:\development\xtreemminer\main.cpp
=======
1672097148 source:c:\development\xtreemminer\main.cpp 1672097148 source:c:\development\xtreemminer\main.cpp
>>>>>>> dcac2713f6b72f4d2252632a179b30a33fd827a8
<stdlib.h> <stdlib.h>
<GL/glut.h> <GL/glut.h>
"Utilities.h" "Utilities.h"
@ -12,7 +16,11 @@
<random> <random>
<SFML/Window.hpp> <SFML/Window.hpp>
<<<<<<< HEAD
1672201712 c:\development\xtreemminer\include\noderenderer.h
=======
1667160597 c:\development\xtreemminer\include\noderenderer.h 1667160597 c:\development\xtreemminer\include\noderenderer.h
>>>>>>> dcac2713f6b72f4d2252632a179b30a33fd827a8
"Base.h" "Base.h"
"MapBlock.h" "MapBlock.h"
<GL/glut.h> <GL/glut.h>
@ -28,7 +36,11 @@
"MapBlock.h" "MapBlock.h"
"Base.h" "Base.h"
<<<<<<< HEAD
1672341127 c:\development\xtreemminer\include\texturehandler.h
=======
1672105046 c:\development\xtreemminer\include\texturehandler.h 1672105046 c:\development\xtreemminer\include\texturehandler.h
>>>>>>> dcac2713f6b72f4d2252632a179b30a33fd827a8
"stb_image.h" "stb_image.h"
"Base.h" "Base.h"
@ -51,7 +63,7 @@
1667065840 c:\development\xtreemminer\include\utilities.h 1667065840 c:\development\xtreemminer\include\utilities.h
1667079584 c:\development\xtreemminer\include\fastnoiselite.h 1667075984 c:\development\xtreemminer\include\fastnoiselite.h
<cmath> <cmath>
1667350805 source:c:\development\xtreemminer\mapblock.cpp 1667350805 source:c:\development\xtreemminer\mapblock.cpp

View File

@ -2,9 +2,15 @@
<CodeBlocks_layout_file> <CodeBlocks_layout_file>
<FileVersion major="1" minor="0" /> <FileVersion major="1" minor="0" />
<ActiveTarget name="Debug" /> <ActiveTarget name="Debug" />
<<<<<<< HEAD
<File name="include\FastNoiseLite.h" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="100664" topLine="2262" />
=======
<File name="include\NodeRenderer.h" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="-1" zoom_2="0"> <File name="include\NodeRenderer.h" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="-1" zoom_2="0">
<Cursor> <Cursor>
<Cursor1 position="2409" topLine="24" /> <Cursor1 position="2409" topLine="24" />
>>>>>>> dcac2713f6b72f4d2252632a179b30a33fd827a8
</Cursor> </Cursor>
</File> </File>
<File name="MapBlock.cpp" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> <File name="MapBlock.cpp" open="0" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
@ -12,11 +18,38 @@
<Cursor1 position="29" topLine="0" /> <Cursor1 position="29" topLine="0" />
</Cursor> </Cursor>
</File> </File>
<<<<<<< HEAD
<File name="include\MapBlock.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="438" topLine="0" />
</Cursor>
</File>
<File name="include\stb_image.h" open="0" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="8925" topLine="160" />
</Cursor>
</File>
<File name="MapBlock.cpp" open="1" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1001" topLine="30" />
</Cursor>
</File>
<File name="main.cpp" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="2573" topLine="88" />
</Cursor>
</File>
<File name="include\Nodes.h" open="1" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
=======
<File name="include\Nodes.h" open="0" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> <File name="include\Nodes.h" open="0" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
>>>>>>> dcac2713f6b72f4d2252632a179b30a33fd827a8
<Cursor> <Cursor>
<Cursor1 position="264" topLine="0" /> <Cursor1 position="264" topLine="0" />
</Cursor> </Cursor>
</File> </File>
<<<<<<< HEAD
<File name="include\Logger.h" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
=======
<File name="include\LevelGenerator.h" open="0" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> <File name="include\LevelGenerator.h" open="0" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor> <Cursor>
<Cursor1 position="174" topLine="0" /> <Cursor1 position="174" topLine="0" />
@ -38,8 +71,9 @@
</Cursor> </Cursor>
</File> </File>
<File name="include\FastNoiseLite.h" open="0" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> <File name="include\FastNoiseLite.h" open="0" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
>>>>>>> dcac2713f6b72f4d2252632a179b30a33fd827a8
<Cursor> <Cursor>
<Cursor1 position="100664" topLine="2262" /> <Cursor1 position="97" topLine="0" />
</Cursor> </Cursor>
</File> </File>
<File name="include\Base.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> <File name="include\Base.h" open="0" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
@ -69,7 +103,12 @@
</File> </File>
<File name="include\TextureHandler.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0"> <File name="include\TextureHandler.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor> <Cursor>
<Cursor1 position="2192" topLine="17" /> <Cursor1 position="0" topLine="16" />
</Cursor>
</File>
<File name="include\NodeRenderer.h" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="-1" zoom_2="0">
<Cursor>
<Cursor1 position="2409" topLine="75" />
</Cursor> </Cursor>
</File> </File>
</CodeBlocks_layout_file> </CodeBlocks_layout_file>

71
XtreemNodesWindows.depend Normal file
View File

@ -0,0 +1,71 @@
# depslib dependency file v1.0
1667347897 source:c:\development\xtreemminer\gui.cpp
"GUI.h"
1667333037 c:\development\xtreemminer\include\gui.h
"Base.h"
<SFML/Main.hpp>
<SFML/Graphics.hpp>
1667065840 c:\development\xtreemminer\include\base.h
1672106999 source:c:\development\xtreemminer\main.cpp
<stdlib.h>
<GL/glut.h>
"Utilities.h"
"MapBlock.h"
"Base.h"
"NodeRenderer.h"
"TextureHandler.h"
"LevelGenerator.h"
<math.h>
<cstdio>
<random>
<SFML/Window.hpp>
1667065840 c:\development\xtreemminer\include\utilities.h
1667164077 c:\development\xtreemminer\include\mapblock.h
"Base.h"
<math.h>
<cstdio>
1667160597 c:\development\xtreemminer\include\noderenderer.h
"Base.h"
"MapBlock.h"
<GL/glut.h>
1672105046 c:\development\xtreemminer\include\texturehandler.h
"stb_image.h"
"Base.h"
1666445333 c:\development\xtreemminer\include\stb_image.h
"stb_image.h"
<stdio.h>
<stdlib.h>
<stdarg.h>
<stddef.h>
<stdlib.h>
<string.h>
<limits.h>
<math.h>
<stdio.h>
<assert.h>
<stdint.h>
<emmintrin.h>
<intrin.h>
<arm_neon.h>
1667350805 source:c:\development\xtreemminer\mapblock.cpp
"MapBlock.h"
1672106616 source:c:\development\xtreemminer\levelgenerator.cpp
"LevelGenerator.h"
1672106654 c:\development\xtreemminer\include\levelgenerator.h
"FastNoiseLite.h"
"MapBlock.h"
1667075984 c:\development\xtreemminer\include\fastnoiselite.h
<cmath>

30
XtreemNodesWindows.layout Normal file
View File

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_layout_file>
<FileVersion major="1" minor="0" />
<ActiveTarget name="Debug" />
<File name="main.cpp" open="1" top="1" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="3631" topLine="60" />
</Cursor>
</File>
<File name="MapBlock.cpp" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="0" topLine="0" />
</Cursor>
</File>
<File name="LevelGenerator.cpp" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="1029" topLine="0" />
</Cursor>
</File>
<File name="include\MapBlock.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="0" topLine="0" />
</Cursor>
</File>
<File name="include\LevelGenerator.h" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
<Cursor>
<Cursor1 position="97" topLine="0" />
</Cursor>
</File>
</CodeBlocks_layout_file>

BIN
data/img/grass.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

View File

@ -4,8 +4,8 @@
#include "Base.h" #include "Base.h"
//#ifndef TEXTURE_HANDLER #ifndef TEXTURE_HANDLER
//#define TEXTURE_HANDLER #define TEXTURE_HANDLER
class TextureHandler class TextureHandler
{ {
private: private:
@ -39,6 +39,7 @@ class TextureHandler
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 16, 16, 0, GL_RGB, GL_UNSIGNED_BYTE, imageData); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 16, 16, 0, GL_RGB, GL_UNSIGNED_BYTE, imageData);
imageData1 = loadTexture("data/img/oak.png"); imageData1 = loadTexture("data/img/oak.png");
glGenTextures(1, &textures1); glGenTextures(1, &textures1);
glBindTexture(GL_TEXTURE_2D, textures1); glBindTexture(GL_TEXTURE_2D, textures1);
@ -67,4 +68,4 @@ class TextureHandler
} }
}; };
//#endif #endif