Differences From Artifact [e1c74cee31]:
- File src/rendergl.m — part of check-in [d7661be1b1] at 2025-03-23 19:40:00 on branch trunk — Clean up identifiers, use blocks for commands (user: js, size: 11440) [annotate] [blame] [check-ins using]
To Artifact [27faa2c25f]:
- File src/rendergl.m — part of check-in [7c3936be15] at 2025-03-24 21:11:31 on branch trunk — Work around conflicting declaration of gamma (user: js, size: 11480) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 | + + | // rendergl.cpp: core opengl rendering stuff #define gamma math_gamma #include "cube.h" #import "Command.h" #import "DynamicEntity.h" #import "Monster.h" #import "OFString+Cube.h" |
︙ | |||
319 320 321 322 323 324 325 326 327 328 329 330 331 332 | 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 | + + | if (strips == nil) strips = [[OFMutableData alloc] initWithItemSize:sizeof(struct strip)]; struct strip s = { .tex = tex, .start = start, .num = n }; [strips addItem:&s]; } #undef gamma VARFP(gamma, 30, 100, 300, { float f = gamma / 100.0f; Uint16 ramp[256]; SDL_CalculateGammaRamp(f, ramp); |
︙ |