- Timestamp:
- Jul 25, 2020, 8:05:57 PM (4 years ago)
- Branches:
- feature/imgui-sdl, master
- Children:
- 681dbe8
- Parents:
- 6bfd91c
- Location:
- gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/button.cpp
r6bfd91c raa7707d 2 2 3 3 #include <SDL2/SDL_ttf.h> 4 #include <SDL2/SDL2_gfxPrimitives.h>4 // #include <SDL2/SDL2_gfxPrimitives.h> 5 5 6 6 #include "../vulkan-game.hpp" … … 72 72 uint8_t colorA = cur_color & 0xFF; 73 73 74 /* 74 75 boxRGBA(&this->renderer, this->x + x, this->y + y, this->x + this->width, this->y + this->height, 75 76 colorR, colorG, colorB, colorA); 77 */ 76 78 77 79 SDL_Rect rect = { -
gui/panel.cpp
r6bfd91c raa7707d 3 3 #include <iostream> 4 4 5 #include <SDL2/SDL2_gfxPrimitives.h>5 // #include <SDL2/SDL2_gfxPrimitives.h> 6 6 7 7 using namespace std; … … 42 42 SDL_RenderClear(&this->renderer); 43 43 44 /* 44 45 roundedBoxRGBA(&this->renderer, 0, 0, this->width, this->height, 45 46 8, 0x33, 0x33, 0x33, 0xFF); 47 */ 46 48 47 49 int borderThickness = 1; … … 52 54 uint8_t colorA = this->color & 0xFF; 53 55 56 /* 54 57 roundedBoxRGBA(&this->renderer, borderThickness, borderThickness, 55 58 this->width - borderThickness, this->height - borderThickness, 56 59 8, colorR, colorG, colorB, colorA); 60 */ 57 61 58 62 for (UIElement*& uiElement : this->uiElements) {
Note:
See TracChangeset
for help on using the changeset viewer.