You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [2-capture_grab](./examples/desktop/2-capture_grab.cpp) | Continuous capture | C++ | Desktop |
233
-
| [3-capture_callback](./examples/desktop/3-capture_callback.cpp) | Callback-based capture | C++ | Desktop |
234
-
| [4-example_with_glfw](./examples/desktop/4-example_with_glfw.cpp) | OpenGL rendering | C++ | Desktop |
230
+
| [0-print_camera](./examples/desktop/0-print_camera.cpp) / [0-print_camera_c](./examples/desktop/0-print_camera_c.c) | List available cameras | C++ / C | Desktop |
231
+
| [1-minimal_example](./examples/desktop/1-minimal_example.cpp) / [1-minimal_example_c](./examples/desktop/1-minimal_example_c.c) | Basic frame capture | C++ / C | Desktop |
232
+
| [2-capture_grab](./examples/desktop/2-capture_grab.cpp) / [2-capture_grab_c](./examples/desktop/2-capture_grab_c.c) | Continuous capture | C++ / C | Desktop |
233
+
| [3-capture_callback](./examples/desktop/3-capture_callback.cpp) / [3-capture_callback_c](./examples/desktop/3-capture_callback_c.c) | Callback-based capture | C++ / C | Desktop |
234
+
| [4-example_with_glfw](./examples/desktop/4-example_with_glfw.cpp) / [4-example_with_glfw_c](./examples/desktop/4-example_with_glfw_c.c) | OpenGL rendering | C++ / C | Desktop |
# Run the pure C variants (if you built C examples)
249
+
./0-print_camera_c
250
+
./1-minimal_example_c
247
251
```
248
252
253
+
> Note: Each desktop example is available in both C++ (.cpp) and pure C (.c) variants. Use the filenames with a trailing `_c` (e.g. `1-minimal_example_c.c`) for the C versions.
254
+
249
255
## API Reference
250
256
251
257
ccap provides both complete C++ and pure C interfaces to meet different project requirements.
0 commit comments