memesearch
C Code Instead of memcpy

C Code Instead of memcpy

Download Find similar pictures
Text on the meme
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);
What it means

The meme contrasts a simple C memcpy call with an absurdly overcomplicated fake OpenGL-style sequence for copying bytes. The joke mocks verbose graphics APIs and suggests that programmers would suffer through needless setup, state changes, and an error check instead of using the straightforward standard-library function. EN: The meme contrasts a simple C memcpy call with an absurdly overcomplicated fake OpenGL-style sequence for copying bytes. The joke mocks verbose graphics APIs and suggests that programmers would suffer through needless setup, state changes, and an error check instead of using the straightforward standard-library function.

Objects
Tags
Source
Type
image
Size
800×771 · 85.8 KiB
Mood
sarcastic, absurd
Language
en
Added