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
ocornut
20bb6270bc
Examples: all supports TextureID in renderer, added LoadFontTexture() function.
10 years ago
ocornut
b3a208901a
Loading TTF file with stb_truetype. Broke setup API slightly. Font baked, packed with space for custom data. Embeds compressed ProggyClean.
10 years ago
ocornut
c1251d2994
Examples: Fixed warnings for Clang
10 years ago
ocornut
1c657564ac
Examples: Added STB_IMAGE_STATIC in examples to avoid conflicting implementation. Relate to #109
10 years ago
omar
e9e0e36f98
New and better Set[Next]Window(Pos|Size|Collapsed) API.
Removed rarely useful SetNewWindowDefaultPos() in favor of new API.
10 years ago
omar
09bacfbe18
OpenGL example: allow resizing window.
10 years ago
ocornut
987188d437
Fix Clang warning with offsetof() macro? Added -Wall in OpenGL 3 example.
10 years ago
omar
2e5b81627f
Examples: DirectX11: moved shader to be close to its usage location,
10 years ago
omar
52b5376d9b
Examples: OpenGL3: cleaned up to match features of OpenGL2 example
10 years ago
omar
b02eed3e49
Examples: adding title to the top of each examples. Cleaning up file headers.
10 years ago