Added libraries for libpdraw

This commit is contained in:
Rebekah 2022-04-04 19:58:57 -04:00
parent beca1dd4cf
commit 7a75c43219
Signed by: oneechanhax
GPG Key ID: 183EB7902964DAE5
3 changed files with 104 additions and 0 deletions

View File

@ -1,6 +1,50 @@
version: 2.1
jobs:
build-libglez:
docker:
- image: ubuntu:22.04 # LTS only
environment:
DEBIAN_FRONTEND: noninteractive
steps:
- git clone -b v1.0.0 https://github.com/oneechanhax/libglez libglez
- run:
name: "Install development packages"
command: "apt update && apt install -y build-essential cmake libz-dev libpng-dev libglew-dev libgl-dev libx11-dev libxext-dev libxfixes-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"
build-libxoverlay:
docker:
- image: ubuntu:22.04 # LTS only
environment:
DEBIAN_FRONTEND: noninteractive
steps:
- git clone -b v1.0.0 https://github.com/oneechanhax/libxoverlay libxoverlay
- run:
name: "Install development packages"
command: "apt update && 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"
build-libpdraw:
docker:
- image: ubuntu:22.04 # LTS only
@ -24,4 +68,6 @@ jobs:
workflows:
build-libpdraw-workflow:
jobs:
- build-libglez
- build-libxoverlay
- build-libpdraw

BIN
example-src/libxoverlay.so Executable file

Binary file not shown.

58
example-src/xoverlay.h Normal file
View 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