blob: 22339858d7fdabb2ac1458d53683fdf3a9daa6e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
SDL2_vnc: A companion library to SDL for working with VNC servers
This library should be useful to anyone who wnats to display VNC connection
output in a project using SDL2.
The codebase also includes a barebones VNC client, `vncc`, that acts as a
reference use of the library.
# Building SDL2_vnc
SDL2_vnc depends on SDL2, and so needs its headers available during building.
```
$ make
$ make install
```
Individual targets are declared in the `Makefile`. For example, to only build
SDL2_vnc as a shared library:
```
$ make SDL2_vnc.so
```
# Using SDL2_vnc
Be sure to initialise the library using `VNC_Init` before using any of its
functionality.
To get a VNC connection to a server up and running:
- allocate a `VNC_Connection`;
- initialise it using `VNC_InitConnection`.
From there, the surface containing the framebuffer data can be accessed at
`vnc_connection.surface`.
See `vncc.c` for a more thorough example use of the library.
# Issues
Issues can be raised in the GitLab project's issues. Alternatively, feel free to
contact me at <mag@magnostherobot.co.uk>.
|