small changes

This commit is contained in:
2024-01-21 18:47:15 +02:00
parent d693f250a6
commit af592b8578
4 changed files with 6 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
package glx
import x11 "vendor:x11/xlib"
Drawable :: x11.XID
RENDER_TYPE :: 0x8011
RGBA_BIT :: 0x00000001
DEPTH_SIZE :: 12
+1 -1
View File
@@ -3,7 +3,7 @@ package glx
import x11 "vendor:x11/xlib"
foreign import glx "system:GL"
Drawable :: x11.XID
#assert(size_of(__FBConfigRec) == 232)
@private
__FBConfigRec :: struct {
+1 -1
View File
@@ -11,7 +11,7 @@ uniform bool hasTexture;
uniform sampler2D tex;
const float smoothness = 1.0;
const float smoothness = 0.7;
void main() {
float alpha = aColor.a;
-1
View File
@@ -874,7 +874,6 @@ x11_create_window :: proc(window_title: cstring, window_size: Vec2, icon_path: c
x11.XMapWindow(x11_display, x11_window)
// nocheckin
gl.load_up_to(3, 3, proc(p: rawptr, name: cstring) { (cast(^rawptr)p)^ = glx.GetProcAddressARB(raw_data(string(name))) })
glx_major : i32