mirror of
https://github.com/IllusionMan1212/O2048.git
synced 2026-10-24 10:12:37 +00:00
small changes
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
package glx
|
package glx
|
||||||
|
|
||||||
|
import x11 "vendor:x11/xlib"
|
||||||
|
|
||||||
|
Drawable :: x11.XID
|
||||||
|
|
||||||
RENDER_TYPE :: 0x8011
|
RENDER_TYPE :: 0x8011
|
||||||
RGBA_BIT :: 0x00000001
|
RGBA_BIT :: 0x00000001
|
||||||
DEPTH_SIZE :: 12
|
DEPTH_SIZE :: 12
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ package glx
|
|||||||
import x11 "vendor:x11/xlib"
|
import x11 "vendor:x11/xlib"
|
||||||
foreign import glx "system:GL"
|
foreign import glx "system:GL"
|
||||||
|
|
||||||
Drawable :: x11.XID
|
#assert(size_of(__FBConfigRec) == 232)
|
||||||
|
|
||||||
@private
|
@private
|
||||||
__FBConfigRec :: struct {
|
__FBConfigRec :: struct {
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ uniform bool hasTexture;
|
|||||||
|
|
||||||
uniform sampler2D tex;
|
uniform sampler2D tex;
|
||||||
|
|
||||||
const float smoothness = 1.0;
|
const float smoothness = 0.7;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
float alpha = aColor.a;
|
float alpha = aColor.a;
|
||||||
|
|||||||
@@ -874,7 +874,6 @@ x11_create_window :: proc(window_title: cstring, window_size: Vec2, icon_path: c
|
|||||||
|
|
||||||
x11.XMapWindow(x11_display, x11_window)
|
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))) })
|
gl.load_up_to(3, 3, proc(p: rawptr, name: cstring) { (cast(^rawptr)p)^ = glx.GetProcAddressARB(raw_data(string(name))) })
|
||||||
|
|
||||||
glx_major : i32
|
glx_major : i32
|
||||||
|
|||||||
Reference in New Issue
Block a user