Changeset 99d44b2 in opengl-game for vulkan-game.cpp


Ignore:
Timestamp:
Aug 30, 2019, 4:12:23 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
d02c25f
Parents:
4eb4d0a
Message:

Rename spacegame to vulkangame

File:
1 moved

Legend:

Unmodified
Added
Removed
  • vulkan-game.cpp

    r4eb4d0a r99d44b2  
    1 #include "space-game.hpp"
     1#include "vulkan-game.hpp"
    22
    33#include <iostream>
    44
     5#define GAMEGUI_INCLUDE_VULKAN
    56#include "game-gui-sdl.hpp"
    67
    78using namespace std;
    89
    9 SpaceGame::SpaceGame() {
     10VulkanGame::VulkanGame() {
    1011   gui = nullptr;
    1112   window = nullptr;
    1213}
    1314
    14 SpaceGame::~SpaceGame() {
     15VulkanGame::~VulkanGame() {
    1516}
    1617
    17 void SpaceGame::run() {
     18void VulkanGame::run() {
    1819   if (initWindow() == RTWO_ERROR) {
    1920      return;
     
    2425}
    2526
    26 bool SpaceGame::initWindow() {
     27bool VulkanGame::initWindow() {
    2728   gui = new GameGui_SDL();
    2829
     
    4344}
    4445
    45 void SpaceGame::initVulkan() {
     46void VulkanGame::initVulkan() {
    4647}
    4748
    48 void SpaceGame::mainLoop() {
     49void VulkanGame::mainLoop() {
    4950   SDL_Event e;
    5051   bool quit = false;
     
    6566}
    6667
    67 void SpaceGame::cleanup() {
     68void VulkanGame::cleanup() {
    6869   gui->DestroyWindow();
    6970   gui->Shutdown();
Note: See TracChangeset for help on using the changeset viewer.