libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
blit.h File Reference

Functions for graphics blits. More...

#include <stdint.h>
Include dependency graph for blit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void gfx_slow_swizzling_blit (uint32_t *framebuffer, uint32_t *image, int w, int h, int tx, int ty)
 Copies pixels from image to framebuffer, swizzling them into the format the GPU expects. More...
 

Detailed Description

Functions for graphics blits.

Function Documentation

void gfx_slow_swizzling_blit ( uint32_t *  framebuffer,
uint32_t *  image,
int  w,
int  h,
int  tx,
int  ty 
)

Copies pixels from image to framebuffer, swizzling them into the format the GPU expects.

Parameters
framebufferPointer to the framebuffer, usually acquired from surface_dequeue_buffer
imageImage to copy pixels from
wWidth of image
hHeight of image
txTarget X
tyTarget Y