Compare commits
18 Commits
main
...
circleci-p
Author | SHA1 | Date | |
---|---|---|---|
fe7651b89a | |||
a98c7d5aa8 | |||
f5e28d9f97 | |||
2ec046c72c | |||
7a75c43219 | |||
beca1dd4cf | |||
f6ebe54c9f | |||
1cdf1db881 | |||
a681aa2c2b | |||
f17444fc9e | |||
b8c9d70ef0 | |||
6358f05e8c | |||
af55749cad | |||
0c1a6fb79b | |||
5b510f44a8 | |||
6f6f068cb9 | |||
872e6a09a1 | |||
83562c142e |
80
.circleci/config.yml
Normal file
80
.circleci/config.yml
Normal file
@ -0,0 +1,80 @@
|
||||
version: 2.1
|
||||
|
||||
jobs:
|
||||
build-libpdraw:
|
||||
docker:
|
||||
- image: ubuntu:22.04 # LTS only
|
||||
environment:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
steps:
|
||||
- run:
|
||||
name: "Update apt and Install git"
|
||||
command: "apt update && apt install -y git"
|
||||
- run:
|
||||
name: "Clone libxoverlay"
|
||||
command: "git clone -b v1.0.0 https://github.com/oneechanhax/libxoverlay libxoverlay"
|
||||
- run:
|
||||
name: "Install xlib development packages"
|
||||
command: "apt install -y build-essential cmake libglew-dev libx11-dev libxext-dev libxfixes-dev"
|
||||
- run:
|
||||
name: "Make build directory"
|
||||
command: "mkdir libxoverlay/build"
|
||||
- run:
|
||||
name: "CMake build files"
|
||||
command: "cd libxoverlay/build && cmake -DCMAKE_BUILD_TYPE=Release ../"
|
||||
- run:
|
||||
name: "Build libxoverlay"
|
||||
command: "cd libxoverlay/build && make"
|
||||
- run:
|
||||
name: "Install libxoverlay"
|
||||
command: "cd libxoverlay/build && make install"
|
||||
- run:
|
||||
name: "Remove libxoverlay source"
|
||||
command: "rm -rf libxoverlay/"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- run:
|
||||
name: "Clone libglez"
|
||||
command: "git clone -b v1.0.1 https://github.com/oneechanhax/libglez libglez"
|
||||
- run:
|
||||
name: "Install libglez dependancies"
|
||||
command: "apt install -y libz-dev libpng-dev libfreetype-dev libsdl2-dev"
|
||||
- run:
|
||||
name: "Make build directory"
|
||||
command: "mkdir libglez/build"
|
||||
- run:
|
||||
name: "CMake build files"
|
||||
command: "cd libglez/build && cmake -DCMAKE_BUILD_TYPE=Release ../"
|
||||
- run:
|
||||
name: "Build libglez"
|
||||
command: "cd libglez/build && make"
|
||||
- run:
|
||||
name: "Install libglez"
|
||||
command: "cd libglez/build && make install"
|
||||
- run:
|
||||
name: "Remove libglez source"
|
||||
command: "rm -rf libglez/"
|
||||
|
||||
|
||||
|
||||
- checkout
|
||||
- run:
|
||||
name: "Install libpdraw dependencies"
|
||||
command: "apt install -y imagemagick "
|
||||
- run:
|
||||
name: "Make build directory"
|
||||
command: "mkdir build"
|
||||
- run:
|
||||
name: "CMake build files"
|
||||
command: "cd build && cmake -DCMAKE_BUILD_TYPE=Release ../"
|
||||
- run:
|
||||
name: "Build Project"
|
||||
command: "cd build && make"
|
||||
|
||||
workflows:
|
||||
build-libpdraw-workflow:
|
||||
jobs:
|
||||
- build-libpdraw
|
BIN
example-src/libxoverlay.so
Executable file
BIN
example-src/libxoverlay.so
Executable file
Binary file not shown.
58
example-src/xoverlay.h
Normal file
58
example-src/xoverlay.h
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* overlay.hpp
|
||||
*
|
||||
* Created on: Nov 8, 2017
|
||||
* Author: nullifiedcat
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/XKBlib.h>
|
||||
|
||||
struct xoverlay_library
|
||||
{
|
||||
Display *display;
|
||||
Window window;
|
||||
Colormap colormap;
|
||||
GC gc;
|
||||
XGCValues gcvalues;
|
||||
XFontStruct font;
|
||||
int screen;
|
||||
|
||||
int width;
|
||||
int height;
|
||||
|
||||
struct
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
} mouse;
|
||||
|
||||
char init;
|
||||
char drawing;
|
||||
char mapped;
|
||||
};
|
||||
|
||||
extern struct xoverlay_library xoverlay_library;
|
||||
|
||||
int xoverlay_init();
|
||||
|
||||
void xoverlay_destroy();
|
||||
|
||||
void xoverlay_show();
|
||||
|
||||
void xoverlay_hide();
|
||||
|
||||
void xoverlay_draw_begin();
|
||||
|
||||
void xoverlay_draw_end();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user