Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
sp4cerat committed Jul 16, 2015
1 parent 8ac1caa commit e5bfbb7
Show file tree
Hide file tree
Showing 364 changed files with 115,679 additions and 1 deletion.
25 changes: 25 additions & 0 deletions GameGui.sln
@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Desktop
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GameGui", "src\Project.vcxproj", "{98864040-E723-43CF-9479-6FBCDF2F6C51}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Debug|Win32.ActiveCfg = Debug|Win32
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Debug|Win32.Build.0 = Debug|Win32
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Debug|x64.ActiveCfg = Debug|x64
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Debug|x64.Build.0 = Debug|x64
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Release|Win32.ActiveCfg = Release|Win32
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Release|Win32.Build.0 = Release|Win32
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Release|x64.ActiveCfg = Release|x64
{98864040-E723-43CF-9479-6FBCDF2F6C51}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
13 changes: 12 additions & 1 deletion README.md
@@ -1 +1,12 @@
# Game-GUI
////////////////////////////////////////////////////////////////////////////////
//
// Game GUI - A Simple GUI with skin-support for OpenGL Games
//
// (C) by Sven Forstmann in 2015
//
// License : MIT
// http://opensource.org/licenses/MIT
////////////////////////////////////////////////////////////////////////////////
// Mathlib included from
// http://sourceforge.net/projects/nebuladevice/
////////////////////////////////////////////////////////////////////////////////
Binary file added bin32/DevIL.dll
Binary file not shown.
Binary file added bin32/GameGui.exe
Binary file not shown.
Binary file added bin32/ILU.dll
Binary file not shown.
Binary file added bin32/ILUT.dll
Binary file not shown.
Binary file added bin32/freeglut.dll
Binary file not shown.
Binary file added bin64/DevIL.dll
Binary file not shown.
Binary file added bin64/GameGui.exe
Binary file not shown.
Binary file added bin64/ILU.dll
Binary file not shown.
Binary file added bin64/ILUT.dll
Binary file not shown.
Binary file added bin64/freeglut.dll
Binary file not shown.
40 changes: 40 additions & 0 deletions data/gui_global.txt
@@ -0,0 +1,40 @@

# Font

number font_size 14
string font_name ../data/ipaexg.ttf

vec4 font_color 0 0 0 1
vec4 font_color_hover 0 0 0.5 1
vec4 font_color_pressed 0.3 0 0 1

# Gui Controls

number window_title_pady 10
number window_title_height 36
number window_closebutton_width 58
number window_closebutton_height 26
number window_closebutton_padx 8
number window_closebutton_pady 1
number window_togglebutton_width 26
number window_togglebutton_height 26
number window_togglebutton_padx 70
number window_togglebutton_pady 1
number window_resizebutton_width 23
number window_resizebutton_height 22
number window_frame_pad_left 11
number window_frame_pad_right 33
number window_frame_pad_up 66
number window_frame_pad_down 30
number window_hscrollbar_height 20
number window_vscrollbar_width 20

number button_pad_left 5
number button_pad_up 0
number button_pad_right 5
number button_pad_down 0

number button_size_x 30
number button_size_y 20

number menu_size_x 100
208 changes: 208 additions & 0 deletions data/gui_skin.txt
@@ -0,0 +1,208 @@

skin begin button
skin normal ../data/win8/button_normal.png
skin hover ../data/win8/button_hover.png
skin pressed ../data/win8/button_selected.png
skin scale inner 4 67 4 16
skin end

skin begin submenu
skin normal ../data/win8/submenu_normal.png
skin hover ../data/win8/submenu_hover.png
skin pressed ../data/win8/submenu_selected.png
skin scale inner 4 58 4 16
skin end

skin begin menu
skin hover ../data/win8/menu_hover.png
skin pressed ../data/win8/menu_selected.png
skin scale inner 4 67 4 16
skin end

skin begin tab
skin normal ../data/win8/tab_normal.png
skin hover ../data/win8/tab_hover.png
skin pressed ../data/win8/tab_selected.png
skin scale inner 4 67 4 16
skin end

skin begin tab_button
skin normal ../data/win8/tab_normal.png
skin hover ../data/win8/tab_hover.png
skin pressed ../data/win8/tab_selected.png
skin scale inner 4 67 4 16
skin end

skin begin tab_window
skin normal ../data/win8/tab_window_normal.png
skin hover ../data/win8/tab_window_hover.png
skin pressed ../data/win8/tab_window_selected.png
skin scale inner 4 67 4 16
skin end

skin begin checkbox
skin normal ../data/win8/checkbox_normal.png
skin hover ../data/win8/checkbox_hover.png
skin pressed ../data/win8/checkbox_selected.png
skin end

skin begin combo
skin normal ../data/win8/combo_normal.png
skin hover ../data/win8/combo_hover.png
skin pressed ../data/win8/combo_selected.png
skin scale inner 4 52 4 16
skin end

skin begin combo_select
skin hover ../data/win8/combo_select_hover.png
skin pressed ../data/win8/combo_select_selected.png
skin scale inner 4 67 4 16
skin end

skin begin combo_background
skin normal ../data/win8/combo_background.png
skin scale inner 4 67 4 16
skin end

skin begin slider_horiz_left
skin normal ../data/win8/slider_horiz_left_normal.png
skin hover ../data/win8/slider_horiz_left_hover.png
skin pressed ../data/win8/slider_horiz_left_selected.png
skin end

skin begin slider_horiz_right
skin normal ../data/win8/slider_horiz_right_normal.png
skin hover ../data/win8/slider_horiz_right_hover.png
skin pressed ../data/win8/slider_horiz_right_selected.png
skin end

skin begin slider_horiz_button
skin normal ../data/win8/slider_horiz_button_normal.png
skin hover ../data/win8/slider_horiz_button_hover.png
skin pressed ../data/win8/slider_horiz_button_selected.png
skin end

skin begin slider_vert_left
skin normal ../data/win8/slider_vert_left_normal.png
skin hover ../data/win8/slider_vert_left_hover.png
skin pressed ../data/win8/slider_vert_left_selected.png
skin end

skin begin slider_vert_right
skin normal ../data/win8/slider_vert_right_normal.png
skin hover ../data/win8/slider_vert_right_hover.png
skin pressed ../data/win8/slider_vert_right_selected.png
skin end

skin begin slider_vert_button
skin normal ../data/win8/slider_vert_button_normal.png
skin hover ../data/win8/slider_vert_button_hover.png
skin pressed ../data/win8/slider_vert_button_selected.png
skin end

skin begin slider_vert_button
skin normal ../data/win8/slider_vert_button_normal.png
skin hover ../data/win8/slider_vert_button_hover.png
skin pressed ../data/win8/slider_vert_button_selected.png
skin end

skin begin vscrollbar
skin normal ../data/win8/vscrollbar_normal.png
skin hover ../data/win8/vscrollbar_hover.png
skin pressed ../data/win8/vscrollbar_selected.png
skin end

skin begin vscrollbar_button_start
skin normal ../data/win8/vscrollbar_button_up_normal.png
skin hover ../data/win8/vscrollbar_button_up_hover.png
skin pressed ../data/win8/vscrollbar_button_up_selected.png
skin end

skin begin vscrollbar_button_start
skin normal ../data/win8/vscrollbar_button_up_normal.png
skin hover ../data/win8/vscrollbar_button_up_hover.png
skin pressed ../data/win8/vscrollbar_button_up_selected.png
skin end

skin begin vscrollbar_button_center
skin normal ../data/win8/vscrollbar_button_normal.png
skin hover ../data/win8/vscrollbar_button_hover.png
skin pressed ../data/win8/vscrollbar_button_selected.png
skin end

skin begin vscrollbar_button_end
skin normal ../data/win8/vscrollbar_button_down_normal.png
skin hover ../data/win8/vscrollbar_button_down_hover.png
skin pressed ../data/win8/vscrollbar_button_down_selected.png
skin end

skin begin hscrollbar
skin normal ../data/win8/hscrollbar_normal.png
skin hover ../data/win8/hscrollbar_hover.png
skin pressed ../data/win8/hscrollbar_selected.png
skin end

skin begin hscrollbar
skin normal ../data/win8/hscrollbar_normal.png
skin hover ../data/win8/hscrollbar_hover.png
skin pressed ../data/win8/hscrollbar_selected.png
skin end

skin begin hscrollbar_button_center
skin normal ../data/win8/hscrollbar_button_normal.png
skin hover ../data/win8/hscrollbar_button_hover.png
skin pressed ../data/win8/hscrollbar_button_selected.png
skin end

skin begin hscrollbar_button_end
skin normal ../data/win8/hscrollbar_button_right_normal.png
skin hover ../data/win8/hscrollbar_button_right_hover.png
skin pressed ../data/win8/hscrollbar_button_right_selected.png
skin end

skin begin window
skin normal ../data/win8/window_normal.png
skin hover ../data/win8/window_hover.png
skin pressed ../data/win8/window_selected.png
skin scale inner 34 327 94 225
skin end

skin begin window_close
skin normal ../data/win8/window_close_normal.png
skin hover ../data/win8/window_close_hover.png
skin end

skin begin window_toggle
skin normal ../data/win8/window_toggle_normal.png
skin hover ../data/win8/window_toggle_hover.png
skin pressed ../data/win8/window_toggle_selected.png
skin end

skin begin window_resize
skin normal ../data/win8/window_resize_normal.png
skin hover ../data/win8/window_resize_hover.png
skin pressed ../data/win8/window_resize_selected.png
skin end

skin begin textedit
skin normal ../data/win8/textedit_normal.png
skin hover ../data/win8/textedit_hover.png
skin pressed ../data/win8/textedit_selected.png
skin scale inner 4 67 4 16
skin end

skin begin textedit_up
skin normal ../data/win8/textedit_up_normal.png
skin hover ../data/win8/textedit_up_hover.png
skin pressed ../data/win8/textedit_up_selected.png
skin end

skin begin textedit_down
skin normal ../data/win8/textedit_down_normal.png
skin hover ../data/win8/textedit_down_hover.png
skin pressed ../data/win8/textedit_down_selected.png
skin end

skin begin mouse_arrow
skin normal ../data/mouse/arrow.png
skin end
Binary file added data/ipaexg.ttf
Binary file not shown.
Binary file added data/mouse/arrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/smiley.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/smiley2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/smileybw.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/button_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/button_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/button_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/checkbox_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/checkbox_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/checkbox_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/combo_background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/combo_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/combo_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/combo_select_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/combo_select_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/combo_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_left_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_left_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_left_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_right_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_right_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_right_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_button_selected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/win8/hscrollbar_hover.png
Binary file added data/win8/hscrollbar_normal.png
Binary file added data/win8/hscrollbar_selected.png
Binary file added data/win8/menu_hover.png
Binary file added data/win8/menu_normal.png
Binary file added data/win8/menu_selected.png
Binary file added data/win8/slider_horiz_button_hover.png
Binary file added data/win8/slider_horiz_button_normal.png
Binary file added data/win8/slider_horiz_button_selected.png
Binary file added data/win8/slider_horiz_left_hover.png
Binary file added data/win8/slider_horiz_left_normal.png
Binary file added data/win8/slider_horiz_left_selected.png
Binary file added data/win8/slider_horiz_right_hover.png
Binary file added data/win8/slider_horiz_right_normal.png
Binary file added data/win8/slider_horiz_right_selected.png
Binary file added data/win8/slider_vert_button_hover.png
Binary file added data/win8/slider_vert_button_normal.png
Binary file added data/win8/slider_vert_button_selected.png
Binary file added data/win8/slider_vert_left_hover.png
Binary file added data/win8/slider_vert_left_normal.png
Binary file added data/win8/slider_vert_left_selected.png
Binary file added data/win8/slider_vert_right_hover.png
Binary file added data/win8/slider_vert_right_normal.png
Binary file added data/win8/slider_vert_right_selected.png
Binary file added data/win8/submenu_hover.png
Binary file added data/win8/submenu_normal.png
Binary file added data/win8/submenu_selected.png
Binary file added data/win8/tab_button_hover.png
Binary file added data/win8/tab_button_normal.png
Binary file added data/win8/tab_button_selected.png
Binary file added data/win8/tab_hover.png
Binary file added data/win8/tab_normal.png
Binary file added data/win8/tab_selected.png
Binary file added data/win8/tab_window_hover.png
Binary file added data/win8/tab_window_normal.png
Binary file added data/win8/tab_window_selected.png
Binary file added data/win8/textedit_down_hover.png
Binary file added data/win8/textedit_down_normal.png
Binary file added data/win8/textedit_down_selected.png
Binary file added data/win8/textedit_hover.png
Binary file added data/win8/textedit_normal.png
Binary file added data/win8/textedit_selected.png
Binary file added data/win8/textedit_up_hover.png
Binary file added data/win8/textedit_up_normal.png
Binary file added data/win8/textedit_up_selected.png
Binary file added data/win8/vscrollbar_button_down_hover.png
Binary file added data/win8/vscrollbar_button_down_normal.png
Binary file added data/win8/vscrollbar_button_down_selected.png
Binary file added data/win8/vscrollbar_button_hover.png
Binary file added data/win8/vscrollbar_button_normal.png
Binary file added data/win8/vscrollbar_button_right_hover.png
Binary file added data/win8/vscrollbar_button_selected.png
Binary file added data/win8/vscrollbar_button_up_hover.png
Binary file added data/win8/vscrollbar_button_up_normal.png
Binary file added data/win8/vscrollbar_button_up_selected.png
Binary file added data/win8/vscrollbar_hover.png
Binary file added data/win8/vscrollbar_normal.png
Binary file added data/win8/vscrollbar_selected.png
Binary file added data/win8/win8_noscroll/window_hover.png
Binary file added data/win8/win8_noscroll/window_normal.png
Binary file added data/win8/win8_noscroll/window_selected.png
Binary file added data/win8/window_close_hover.png
Binary file added data/win8/window_close_normal.png
Binary file added data/win8/window_hover.png
Binary file added data/win8/window_normal.png
Binary file added data/win8/window_resize_hover.png
Binary file added data/win8/window_resize_normal.png
Binary file added data/win8/window_resize_selected.png
Binary file added data/win8/window_selected.png
Binary file added data/win8/window_toggle_hover.png
Binary file added data/win8/window_toggle_normal.png
Binary file added data/win8/window_toggle_selected.png
22 changes: 22 additions & 0 deletions ext/GL/freeglut.h
@@ -0,0 +1,22 @@
#ifndef __FREEGLUT_H__
#define __FREEGLUT_H__

/*
* freeglut.h
*
* The freeglut library include file
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#include "freeglut_std.h"
#include "freeglut_ext.h"

/*** END OF FILE ***/

#endif /* __FREEGLUT_H__ */

0 comments on commit e5bfbb7

Please sign in to comment.