Changeset 03f4c64 in opengl-game


Ignore:
Timestamp:
Jun 25, 2019, 4:11:21 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
71876b9
Parents:
9d4456b
Message:

Create an initial program and makefile config that uses Vulkan

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • .gitignore

    r9d4456b r03f4c64  
     1vulkangame
    12newgame
    23pong
  • README.txt

    r9d4456b r03f4c64  
    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 libglm-dev
  • makefile

    r9d4456b r03f4c64  
    11OS = $(shell uname)
    22CC = g++
    3 CFLAGS = -std=c++0x -Wall -pedantic -rdynamic
     3CFLAGS = -std=c++11 -Wall -pedantic -rdynamic
    44# -rdynamic is to generate debug info for dynamic symbols on debian-based
    55# systems (tested on Linux Mint)
     
    3333        $(CC) $^ $(DEP) $(CFLAGS) -o $@
    3434
     35VULKAN_SDK_PATH = /home/dportnoy/Desktop/VulkanSDK/1.1.106.0/x86_64
     36CFLAGS_VULKAN = -std=c++17 -I$(VULKAN_SDK_PATH)/include -Wall -pedantic
     37LIBFLAGS = -L$(VULKAN_SDK_PATH)/lib `pkg-config --static --libs glfw3` -lvulkan
     38
     39vulkangame: vulkan-game.cpp
     40        $(CC) $(CFLAGS_VULKAN) -o $@ $^ $(LIBFLAGS)
     41
    3542clean:
    3643        rm -f newgame
     
    3845        rm -f mygame
    3946        rm -f demo
     47        rm -f vulkangame
Note: See TracChangeset for help on using the changeset viewer.