Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# VSCODE
.vscode/

# User-specific stuff:
.idea/workspace.xml
.idea/tasks.xml
Expand All @@ -58,6 +61,8 @@
**/*.cbp
**/CMakeScripts
**/compile_commands.json
builddir/
build/

# Gradle:
.idea/gradle.xml
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project(RmlUI_Example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_STANDARD 99)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)

set(BUILD_SHARED_LIBS ON)

Expand Down Expand Up @@ -55,8 +56,8 @@ set(benchmarkSource
set (bitmapfontSource
src/samples/basic/bitmapfont.cpp
src/samples/exampleEvent.cpp
src/samples/basic/bitmapfont/fontEngineBitmap.cpp
src/samples/basic/bitmapfont/fontEngineInterfaceBitmap.cpp
src/samples/basic/bitmapfont/FontEngineBitmap.cpp
src/samples/basic/bitmapfont/FontEngineInterfaceBitmap.cpp
)

set (databindingSource
Expand Down
61 changes: 38 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,43 @@
# Raylib + RmlUi
[Raylib](https://github.com/raysan5/raylib) is a thin wrapper around OpenGL using the inbuilt rlgl.

[RmlUi](https://github.com/mikke89/RmlUi) is a XHTML 1.0 / CSS 2 renderer with ease of interaction with the elements.

# Examples
* [ ] Basic
* [x] Animation
* [x] Benchmark
* [x] Bitmapfont
* [x] Databinding
* [ ] Demo
* [ ] Drag
* [ ] LoadDocuments
* [ ] Lottie
* [ ] SVG
* [ ] Transform
* [ ] Treeview
* [ ] Invaders
* [ ] Tutorial


# Building Examples
```bash

- [Raylib](https://github.com/raysan5/raylib) is a thin wrapper around OpenGL using the inbuilt rlgl.
- [RmlUi](https://github.com/mikke89/RmlUi) is a XHTML 1.0 / CSS 2 renderer with ease of interaction with the elements.

## Examples

- [ ] Basic
- [x] Animation
- [x] Benchmark
- [x] Bitmapfont
- [x] Databinding
- [ ] Demo
- [ ] Drag
- [ ] LoadDocuments
- [ ] Lottie
- [ ] SVG
- [ ] Transform
- [ ] Treeview
- [ ] Invaders
- [ ] Tutorial

## Building Examples

```shell
git submodule update --init --recursive
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Debug
cmake --build ./build -- -j $(nproc)
```

### Running examples

After building

- `cd bin/Debug`
- `./RmlUI_Example` or `./RmlUI_Example.exe` if on Windows

Other examples

- `./RaylibAnimation_Example`
- `./RaylibBenchmark_Example`
- `./RaylibBitmapfont_Example`
- `./RaylibDatabinding_Example`
2 changes: 1 addition & 1 deletion assets/LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
Expand Down
Binary file added assets/alien_small.tga
Binary file not shown.
6 changes: 3 additions & 3 deletions assets/demo.rml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
{
width: 300dp;
height: 225dp;

margin: auto;
}

div#title_bar div#icon
{
display: none;
}

div#content
{
text-align: left;
Expand Down
Loading