reinventant la roda
This commit is contained in:
@@ -14,8 +14,8 @@ int main(int argc, char *argv[])
|
||||
SDL_Window *window = SDL_CreateWindow("pixels", WIDTH * ZOOM, HEIGHT * ZOOM, 0);
|
||||
SDL_Renderer *renderer = SDL_CreateRenderer(window, nullptr);
|
||||
SDL_SetRenderLogicalPresentation(renderer, WIDTH, HEIGHT, SDL_LOGICAL_PRESENTATION_INTEGER_SCALE);
|
||||
// SDL_SetDefaultTextureScaleMode(renderer, SDL_SCALEMODE_NEAREST);
|
||||
SDL_Texture *texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, WIDTH, HEIGHT);
|
||||
SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST);
|
||||
|
||||
Uint32 *pixels;
|
||||
int pitch;
|
||||
|
||||
Reference in New Issue
Block a user