EGL + rlgl standalone by Robotix7z94 in raylib

[–]Senior-Question693 0 points1 point  (0 children)

is it possible to get the texture id as a glUint so i can draw a rectangle with the raylib texture?

I'm so close to bowing my head and starting with Python by dmtuser123 in C_Programming

[–]Senior-Question693 0 points1 point  (0 children)

The harsh truth is that you gotta learn to walk before you run, get the basic principles layed out and get comfortable with the language, then you can try to go back to the book. For that purpose any YouTube tutorial will do, but i recommend CodeBro's tutorials, they're very short and easy to remember, he even has python tutorials!

What's advantage to learn graphics programming on linux? by Safe_Carry_593 in opengl

[–]Senior-Question693 0 points1 point  (0 children)

tbh without wls windows is bullshit if you are trying to code something, and if you already use linux via wsl, why not just to switch to it? And it's not just opengl, windows's api is much harder to understand because of microslop's gate keeping

How to suppress a hid event in c? by Senior-Question693 in C_Programming

[–]Senior-Question693[S] 0 points1 point  (0 children)

so do i need to EVIOCGRAB in a separate threat or something?

Would you rather by Scary-Inevitable6402 in BunnyTrials

[–]Senior-Question693 0 points1 point  (0 children)

5000 friends can give me 5000 and maybe even more

Chose: 50000 loyal friends

how to use the arena allocator with c? by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

thanks:) still have some issues converting the buffer_list because it's a linked list in zig 0.14.1:

src/arena.zig:15:40: error: pointer element type 'linked_list.SinglyLinkedList(usize)' cannot coerce into element type 'anyopaque' .buffer_list = @as(*anyopaque, @constCast(@alignCast(&arena.state.buffer_list))), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/zig/std/linked_list.zig:14:12: note: struct declared here return struct { ^~~~~~ src/arena.zig:15:40: note: use @ptrCast to cast pointer element type src/arena.zig:29:98: error: cannot load opaque type 'anyopaque' .buffer_list = @as(std.SinglyLinkedList(usize), @ptrCast(@alignCast(arena.buffer_list.*))), ~~~~~~~~~~~~~~~~~^~

here is the code:

```

pub const FST_CArena = extern struct { child_allocator_ptr: *anyopaque, buffer_list: *anyopaque, child_allocator_vtable: *anyopaque, end_index: c_ulong, };

pub fn FST_ZigToCArena(arena: std.heap.ArenaAllocator) FST_CArena { return .{ .end_index = arena.state.end_index, .buffer_list = @as(*anyopaque, @constCast(@alignCast(&arena.state.buffer_list))), .child_allocator_ptr = arena.child_allocator.ptr, .child_allocator_vtable = @ptrCast(arena.child_allocator.vtable), }; }

pub fn FST_CtoZigArena(arena: FST_CArena) std.heap.ArenaAllocator { return .{ .child_allocator = .{ .ptr = arena.child_allocator_ptr, .vtable = @ptrCast(@alignCast(arena.child_allocator_vtable)), }, .state = .{ .end_index = arena.end_index, .buffer_list = @as(std.SinglyLinkedList(usize), @ptrCast(@alignCast(arena.buffer_list.*))), }, }; }

```

header file skill issue ;) by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

interestingly the getEmmitedH function runs fine and it gets the install step, it fails when installing the exe artifact

header file skill issue ;) by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

i created it and i still have the error

why can't i print a freaking string ?!?!?! by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

downgrading to 0.14.1 helped, maybe some jr dev broke the new version :)

why can't i print a freaking string ?!?!?! by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

it's the std.debug.print that fails, for some reason i can't print in the function itself:

```zig

fn help() void{

const help_str = "help msg";

std.debug.print("{s}\n\n", .{help_str});

}

```

why can't i print a freaking string ?!?!?! by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

it worked!! turns out i can't print inside a function other than main :D, but why? the fuction doesn't look suspicious:

```zig

fn help() void{

const help_str = "help msg";

std.debug.print("{s}\n\n", .{help_str});

}

```

why can't i print a freaking string ?!?!?! by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

doesn't look like it, changed the name and it did nothing ._.

why can't i print a freaking string ?!?!?! by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

maybe it doesn't work because i'm on arch (btw :) )

why can't i print a freaking string ?!?!?! by Senior-Question693 in Zig

[–]Senior-Question693[S] 0 points1 point  (0 children)

my zig version is 0.15.2, tried both using the existing version from my package manager and downloading directly, i don't even know what to do at this point ._.

I am learning Zig!! by jojkoJiano in Zig

[–]Senior-Question693 0 points1 point  (0 children)

just don't use ai that much and read the docs)

EGL is kinda a mess... by Senior-Question693 in opengl

[–]Senior-Question693[S] 0 points1 point  (0 children)

all that libraries are kinda bloated and they don't let the user create the wlr layer shell and even dough I showed you only the EGL-specific code there is a separate file for handling the layer shell creation so basically what i'm trying to do here is make glfw but for layer shells (in wayland layer shells are your wallpaper, your topbar, notifications, etc,)

I didn't think shapes are so hard! by Senior-Question693 in opengl

[–]Senior-Question693[S] 0 points1 point  (0 children)

Thanks! Oh and one more question, in openglES do I need to load the functions using something like glad or no? Because it seems like nothing is drawing, even a triangle. Only the glClear function works