Browse Source

Platform: even more doc++.

pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
c34260d603
  1. 4
      src/Magnum/Platform/NaClApplication.h
  2. 5
      src/Magnum/Platform/Sdl2Application.h
  3. 3
      src/Magnum/Platform/WindowlessGlxApplication.h

4
src/Magnum/Platform/NaClApplication.h

@ -111,7 +111,9 @@ You can then open `MyApplication` through your webserver in Chrome (e.g.
## General usage
In CMake you need to request `%NaClApplication` component, add
For CMake you need to copy `FindOpenGLES2.cmake` from `modules/` directory in
%Magnum source to `modules/` dir in your project (so it is able to find OpenGL
ES). Request `%NaClApplication` component, add
`${MAGNUM_NACLAPPLICATION_INCLUDE_DIRS}` to include path and link to
`${MAGNUM_NACLAPPLICATION_LIBRARIES}`. If no other application is requested,
you can also use generic `${MAGNUM_APPLICATION_INCLUDE_DIRS}` and

5
src/Magnum/Platform/Sdl2Application.h

@ -114,8 +114,9 @@ e.g. `http://localhost/emscripten/MyApplication.html`).
## General usage
For CMake you need to copy `FindSDL2.cmake` from `modules/` directory in
%Magnum source to `modules/` dir in your project (so it is able to find SDL2),
request `%Sdl2Application` component, add `${MAGNUM_SDL2APPLICATION_INCLUDE_DIRS}`
%Magnum source to `modules/` dir in your project (so it is able to find SDL2).
In case of Emscripten you need also `FindOpenGLES2.cmake`. Request
`%Sdl2Application` component, add `${MAGNUM_SDL2APPLICATION_INCLUDE_DIRS}`
to include path and link to `${MAGNUM_SDL2APPLICATION_LIBRARIES}`. If no other
application is requested, you can also use generic `${MAGNUM_APPLICATION_INCLUDE_DIRS}`
and `${MAGNUM_APPLICATION_LIBRARIES}` aliases to simplify porting. See

3
src/Magnum/Platform/WindowlessGlxApplication.h

@ -132,7 +132,8 @@ class WindowlessGlxApplication {
* @brief Execute application
* @return Value for returning from `main()`
*
* See @ref MAGNUM_WINDOWLESSAPPLICATION_MAIN() for usage information.
* See @ref MAGNUM_WINDOWLESSGLXAPPLICATION_MAIN() for usage
* information.
*/
virtual int exec() = 0;

Loading…
Cancel
Save