Profile for hikari
About hikari
Bio
from another world; anime girls on the internet who are terrible at playing guitar and slightly less bad at programming; EN/SV/DE/ๆฅๆฌ่ช
Stats
- Joined
- Posts
- 19034
- Followed by
- 1574
- Following
- 203
you know, itโs a shame that C is designed by ISO/IEC JTC1/SC22/WG14 and not the OpenGL Architecture Review Board. iโm sure weโd all rather write:
glDisable(GL_MASKING);
glEnableClientState(GL_SOURCE_DATA_ARRAY);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glSourceDataPointer(1, gl::UNSIGNED_BYTE, 1, dst_ptr);
glEnableClientState(GL_DESTINATION_DATA_ARRAY);
glBindBuffer(GL_ARRAY_BUFFER, 0);
glDestinationDataPointer(1, gl::UNSIGNED_BYTE, 1, src_ptr);
glCopyBytes(0, num_bytes);
if (glGetError() != 0) {
// fuck
}
rather than
memcpy(dst_ptr, src_ptr, size);
breaking news: โunsafe function is unsafeโ. hereโs our reporter rustc with more on this story
OpenGL question: is there some way to share the storage between a renderbuffer and a texture, or directly convert a renderbuffer to a texture? note: I know I can construct a framebuffer and use it to copy a renderbuffer to a texture, Iโm just wondering if I can skip that step
sorry but stalin was a tankie and thus he has been cancelled now
gonna piss everyone off by writing a tty driver that emits backspace characters on truncation, so you must open the device file with append rather than truncate mode
if ([it looksLike:Duck] &&
[it respondsToSelector:@selector(swim)] &&
[it respondsToSelector:@selector(quack)]) {
assert([it isKindOfClass:Duck]);
}
Neither ISO/IEC 9899:1999 (โISO C99โ) nor IEEE Std 1003.1-2001
(โPOSIX.1โ) requires time() to set errno on failure; thus, it is impossible
for an application to distinguish the valid time value -1
(representing
the last UTC second of 1969) from the error return value.
so many people talking about y2k38, we forgot to consider y1k969 (or all the overflows after y2k38)
wtf the king of swedenโs personal information is secret since some time in 2021. you used to be able to find out his personnummer etc https://carup.se/carup-avslojar-kungens-nya-hemliga-liv-har-fatt-skyddad-identitet-i-alla-register/
0x0502, the number every opengl programmer fears