Changeset 754cf5a in opengl-game


Ignore:
Timestamp:
Jun 30, 2019, 8:10:49 PM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
a8c958b
Parents:
972aca1 (diff), 71876b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of medievaltech.com:opengl-game

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r972aca1 r754cf5a  
     1vulkangame
    12newgame
    23pong
  • CrashLogger.cpp

    r972aca1 r754cf5a  
    55#include <csignal>
    66#include <cstring>
    7 #include <cstdint> // Check if this lets me remove any windows includes
    87
    98#include <fcntl.h>
     
    1514
    1615#ifdef WINDOWS
     16   // Check if this is necessary or lets me remove any windows includes
     17   // also check if it's needed in Linux
     18   #include <cstdint>
     19
    1720   #include <windows.h>
    1821   #include <io.h>
     
    3336   #include <unistd.h>
    3437   #include <execinfo.h>
    35    #include <errno.h>
    3638   #include <cxxabi.h>
    37    #include <cstring>
     39
     40   // CHeck if these are needed in Linux
     41   //#include <errno.h>
     42   //#include <cstring>
    3843
    3944   void abortHandler(int signum);
  • README.txt

    r972aca1 r754cf5a  
    88(Old Linux instructions for compiling game.cpp)
    99-sudo apt-get install cmake xorg-dev  libglew-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
    10 -
    11 --Compile GLFW3 from source
    12 - (cmake . && make && sudo make install)
     10
     11-Compile GLFW3 from source
     12 (cmake . && make && sudo make install)
    1313
    1414Installation Instructions for OSX
     
    4444
    4545Open and run NewOpenGLGame.sln in Visual Studio 2017 and run it.
     46
     47
     48Vulkan Instructions
     49--------------------
     50
     51Linux:
     52
     53Download the Vulkan SDK from ...
     54
     55-Compile GLFW3 from source
     56 (cmake . && make && sudo make install)
     57
     58-sudo apt-get install libxcb1-dev xorg-dev libsdl2-dev libglm-dev
  • makefile

    r972aca1 r754cf5a  
     1# CFLAGS are compiler flags and LIBFLAGS could be renamed LINKER_FLAGS
    12OS = $(shell uname)
    23CC = g++
    3 CFLAGS = -std=c++0x -Wall -pedantic -rdynamic
     4CFLAGS = -std=c++11 -Wall -pedantic -rdynamic
    45# -rdynamic is to generate debug info for dynamic symbols on debian-based
    56# systems (tested on Linux Mint)
     
    3334        $(CC) $^ $(DEP) $(CFLAGS) -o $@
    3435
     36VULKAN_SDK_PATH = /home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64
     37CFLAGS_VULKAN = -std=c++17 -I$(VULKAN_SDK_PATH)/include -Wall -pedantic
     38#LIBFLAGS = -L$(VULKAN_SDK_PATH)/lib `pkg-config --static --libs glfw3` -lvulkan
     39LIBFLAGS = -L$(VULKAN_SDK_PATH)/lib -lvulkan -lSDL2
     40
     41vulkangame: new-vulkan-game.cpp
     42        $(CC) $(CFLAGS_VULKAN) -o $@ $^ $(LIBFLAGS)
     43
    3544clean:
    3645        rm -f newgame
     
    3847        rm -f mygame
    3948        rm -f demo
     49        rm -f vulkangame
Note: See TracChangeset for help on using the changeset viewer.