Changeset 7fc5e27 in opengl-game for vulkan-ref.cpp


Ignore:
Timestamp:
Sep 3, 2019, 7:07:39 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
b6e60b4
Parents:
1ce9afe
Message:

Change all game-gui function names to lower camel case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-ref.cpp

    r1ce9afe r7fc5e27  
    1919#include <chrono>
    2020
     21#include "consts.hpp"
    2122#include "utils.h"
    2223
     
    226227         // TODO: Put all fonts, textures, and images in the assets folder
    227228
    228          if (gui->Init() == RTWO_ERROR) {
     229         if (gui->init() == RTWO_ERROR) {
    229230            cout << "UI library could not be initialized!" << endl;
    230231            cout << SDL_GetError() << endl;
     
    233234         cout << "GUI init succeeded" << endl;
    234235
    235          window = (SDL_Window*) gui->CreateWindow("Vulkan Game", SCREEN_WIDTH, SCREEN_HEIGHT);
     236         window = (SDL_Window*) gui->createWindow("Vulkan Game", SCREEN_WIDTH, SCREEN_HEIGHT, false);
    236237         if (window == nullptr) {
    237238            cout << "Window could not be created!" << endl;
     
    459460
    460461      vector<const char*> getRequiredExtensions() {
    461          vector<const char*> extensions = gui->GetRequiredExtensions();
     462         vector<const char*> extensions = gui->getRequiredExtensions();
    462463
    463464         if (enableValidationLayers) {
     
    488489
    489490      void createSurface() {
    490          if (gui->CreateVulkanSurface(instance, &surface) == RTWO_ERROR) {
     491         if (gui->createVulkanSurface(instance, &surface) == RTWO_ERROR) {
    491492            throw runtime_error("failed to create window surface!");
    492493         }
     
    710711         else {
    711712            int width, height;
    712             gui->GetWindowSize(&width, &height);
     713            gui->getWindowSize(&width, &height);
    713714
    714715            VkExtent2D actualExtent = {
     
    18121813         int width = 0, height = 0;
    18131814
    1814          gui->GetWindowSize(&width, &height);
     1815         gui->getWindowSize(&width, &height);
    18151816
    18161817         while (width == 0 || height == 0 ||
    18171818            (SDL_GetWindowFlags(window) & SDL_WINDOW_MINIMIZED) != 0) {
    18181819            SDL_WaitEvent(nullptr);
    1819             gui->GetWindowSize(&width, &height);
     1820            gui->getWindowSize(&width, &height);
    18201821         }
    18211822
     
    19081909         gRenderer = nullptr;
    19091910
    1910          gui->DestroyWindow();
    1911          gui->Shutdown();
     1911         gui->destroyWindow();
     1912         gui->shutdown();
    19121913         delete gui;
    19131914      }
Note: See TracChangeset for help on using the changeset viewer.