Post AMhXT652gt5kbIQDCq by iitalics@cybre.space
(DIR) More posts by iitalics@cybre.space
(DIR) Post #AMhXT4ycnGMdB6PZZ2 by iitalics@cybre.space
2022-08-19T17:58:06Z
0 likes, 0 repeats
ive come to realize that opengl's "giant global state machine" model of the world is REALLY hard to fit into rust's RAII/ownership model and it fucken sucks
(DIR) Post #AMhXT5Z8bVZT0LUjTc by alexandra@mk.nixnet.social
2022-08-19T18:00:13.919Z
0 likes, 0 repeats
@iitalics@cybre.space yeah rust /really/ hates globals, which is, y'know, justified
(DIR) Post #AMhXT652gt5kbIQDCq by iitalics@cybre.space
2022-08-19T18:00:58Z
0 likes, 0 repeats
@alexandra discouraging globals is pretty great when you actually have a say in the matter..
(DIR) Post #AMhXT6SnGa5fmxXBE8 by alexandra@mk.nixnet.social
2022-08-19T18:01:40.287Z
0 likes, 0 repeats
@iitalics@cybre.space yeahto truly oxidize, you must design for rust from the beginningotherwise: pain
(DIR) Post #AMhXT6hKOXiUW2Kmsi by iitalics@cybre.space
2022-08-19T17:58:37Z
0 likes, 0 repeats
for instance: trying to free a resource in a Drop impl barely works because you don't actually know what state opengl is in during the drop() call
(DIR) Post #AMhXT8fz2VpUeRik40 by iitalics@cybre.space
2022-08-19T17:59:21Z
0 likes, 0 repeats
so i'm considering just. enforcing that only one opengl context can exist during program execution and if you've set it up once you aren't allowed to tear it dowdn
(DIR) Post #AMhXTAjbO1ud2FQeyu by iitalics@cybre.space
2022-08-19T17:59:40Z
0 likes, 0 repeats
which is obviously extremely gross but also like what else am i supposed to do lol