Changeset aa7707d in opengl-game for gui


Ignore:
Timestamp:
Jul 25, 2020, 8:05:57 PM (4 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master
Children:
681dbe8
Parents:
6bfd91c
Message:

Update the Vulkan SDK version and get the latest code compiling on Windows

Location:
gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gui/button.cpp

    r6bfd91c raa7707d  
    22
    33#include <SDL2/SDL_ttf.h>
    4 #include <SDL2/SDL2_gfxPrimitives.h>
     4// #include <SDL2/SDL2_gfxPrimitives.h>
    55
    66#include "../vulkan-game.hpp"
     
    7272   uint8_t colorA = cur_color & 0xFF;
    7373
     74   /*
    7475   boxRGBA(&this->renderer, this->x + x, this->y + y, this->x + this->width, this->y + this->height,
    7576      colorR, colorG, colorB, colorA);
     77   */
    7678
    7779   SDL_Rect rect = {
  • gui/panel.cpp

    r6bfd91c raa7707d  
    33#include <iostream>
    44
    5 #include <SDL2/SDL2_gfxPrimitives.h>
     5// #include <SDL2/SDL2_gfxPrimitives.h>
    66
    77using namespace std;
     
    4242   SDL_RenderClear(&this->renderer);
    4343
     44   /*
    4445   roundedBoxRGBA(&this->renderer, 0, 0, this->width, this->height,
    4546      8, 0x33, 0x33, 0x33, 0xFF);
     47   */
    4648
    4749   int borderThickness = 1;
     
    5254   uint8_t colorA = this->color & 0xFF;
    5355
     56   /*
    5457   roundedBoxRGBA(&this->renderer, borderThickness, borderThickness,
    5558      this->width - borderThickness, this->height - borderThickness,
    5659      8, colorR, colorG, colorB, colorA);
     60   */
    5761
    5862   for (UIElement*& uiElement : this->uiElements) {
Note: See TracChangeset for help on using the changeset viewer.