omar
b3099d650c
Examples: Adding Roboto to the commented-out font list, and removing the unnecessary ProggyClean from there.
7 years ago
omar
842e88a8e3
Examples: Avoid using ImColor() to not tempt newcomers into looking at it
7 years ago
omar
b8ade0b94f
Examples: Main: Removed call to SetNextWindowSize()
7 years ago
omar
7e452ec737
Renamed ImGuiSetCond_XXX type and enums to ImGuiCond_XXX, kept old enums under #ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
7 years ago
ocornut
a68ac96bc4
Examples: GL3: Comments about gl3w ( #880 )
8 years ago
ocornut
1612ca071b
Examples: SDL: Initialize video+timer subsystem only.
9 years ago
ocornut
7661b1e778
Trim trailing spaces
9 years ago
ocornut
fdc4299c6c
Examples: SDL: Made ImGui_ImplSdlGL3_NewFrame() signature match GL2 one
9 years ago
ocornut
9e86d0e225
Examples: SDL/OpenGL: Tabs to spaces
9 years ago
ocornut
49fb7364b5
Examples: SDL2+OpenGL3: Fix context creation options ( #468 , #463 )
9 years ago
ocornut
94ec3d534e
Examples: Header comments.
9 years ago
ocornut
5c52e9ec0d
Examples: Clarified comments. Removed font merging example from comments.
9 years ago
ocornut
ab7e91b65e
Examples: SDL+OpenGL3: Various fixes to example to make it matches current GL3 example ( #356 )
9 years ago
ocornut
9d0caa2e66
Examples: SDL+OpenGL3: Using glew like existing example + renaming ( #356 )
9 years ago
Zach Toogood
e130b09d91
Previous SDL implementation didn't work with my OpenGL 3.3 project, spliced the GLFW OpenGL examples on top of the SDL example to create an option that works for me. Could be useful for others.
9 years ago
ocornut
11d91a27a4
Carriage return ( #289 )
9 years ago
Jonathan Adamczewski
f158617551
Show SDL error message on init failure
9 years ago
Daniel Gibson
02a0967243
Fix SDL2-example for Linux
The header is called "SDL_opengl.h" - case matters on Linux.
The main() function must indeed be called main(), on Windows it'll be
renamed to SDL_main (for SDL2main.lib) by #define in SDL_main.h
(which is included by SDL.h)
I added an entry to the example's README that describes how to build
it on Linux.
9 years ago
ocornut
4842ac3bc6
Fonts: added Cousine-Regular.ttf
9 years ago
ocornut
0224d29a35
Examples: comments.
9 years ago
ocornut
1845ff4690
SDL example: tweaks ( #233 #226 )
9 years ago
ocornut
22e099366f
SDL example: further cleanup to match other examples ( #233 #226 )
9 years ago
ocornut
4167528001
SDL example: moved event loop to main.cpp , adding page up/page down. ( #226 )
9 years ago
ocornut
b7a2a6b23f
SDL example: renamed folder, added in README
9 years ago
ocornut
b3ae2976c5
SDL example: tweaks and fixes.
9 years ago
Cedric Guillemet
2acdafe4f2
imgui_impl_sdl and main sample
10 years ago
ocornut
d25578efd8
Examples: initializing float + missing comment.
10 years ago
ocornut
3abfb85613
Comments on font loading, fixed commented out paths and added DroidSans in the list
10 years ago
ocornut
cb285c4d35
Examples: uses SetNextWindowPos/SetNextWindowSize when applicable
10 years ago
ocornut
7c9bd71512
Examples: MSVC: increase warning level from /W3 to /W4 for OpenGL examples
10 years ago
ocornut
5879f3f5ac
Examples: OpenGL 2/3 examples cleanup to match DirectX9/11 structure.
10 years ago
ocornut
b87ec205a9
Examples: shallow tweaks to match upcoming other examples.
10 years ago
ocornut
545a57d253
Examples: Refactored opengl_example into a glfw specific file that can be copied and pasted.
Other examples will follow.
10 years ago
ocornut
be9fe9489c
Examples: DirectX examples uses WM_KEYDOWN/WM_KEYUP
Fixes pressing Enter in IME being caught by application right after
validating an IME input.
10 years ago
ocornut
e269125c3a
Windows: setup a default handler for ImeSetInputScreenPosFn so IME (Japanese/Chinese) inputs are positioned correctly.
User need to set io.ImeWindowHandle
10 years ago
ocornut
37d8d5c5be
Examples: OpenGL2 example doesn't need Glew
10 years ago
ocornut
40b04a3701
Renamed ImGuiSetCondition_*** to ImGuiSetCond_*** and ImGuiCondition_FirstUseThisSession to ImGuiCond_Once
10 years ago
ocornut
cb0a4db048
Calculate frame-rate for the user, as a purely luxurious feature
..and to reduce sample code size a little.
10 years ago
ocornut
d65e051a07
Minor formatting tweaks, comments
10 years ago
ocornut
381c7428c1
Examples: changed default background color.
10 years ago
ocornut
edcf2d3bf6
Examples: more comments on loading fonts.
10 years ago
ocornut
1916a0c78c
Renamed FontAtlas to Fonts. Further cleanup/comments.
10 years ago
ocornut
2c31599bcc
ImFontAtlas allows loading multiple fonts into same texture. Revamped new init API for 1.30
10 years ago
ocornut
cb9a3235be
Removed PixelCenterOffset, uncesssary
10 years ago
ocornut
62ecdd21a5
Examples: Added a color slider for the background color + tweak first example use of button.s
10 years ago
ocornut
0f4d74d614
ImFont::GetTextureData API allow to retrieve 8/32 bits data + lazily load defaults font
Examples: OpenGL3 and DirectX11 back to using 32-bits texture solely for
ease of integration.
10 years ago
ocornut
241e8086fa
Mde it optional to new() io.Font - however it stills needs to be loaded.
10 years ago
ocornut
51df5874a6
Examples' Says "OpenGL2" vs "OpenGL3" in title bar.
10 years ago
ocornut
a09f426b89
TAB to spaces
10 years ago
ocornut
5ca563b5a5
Speculative fix for warnings for GCC/Clang
10 years ago