Skip to content
Emil Mair edited this page May 30, 2023 · 4 revisions

void gpu_print_text

  • Buffer buffer
  • uint8_t ox
  • uint8_t oy
  • uint8_t foreground
  • uint8_t background
  • const char *text

Prints null-terminated char array with given foreground and background color to position (ox, oy) on given buffer.


void gpu_print_transparent_text

  • Buffer buffer
  • uint8_t ox
  • uint8_t oy
  • uint8_t foreground
  • const char *text

Prints null-terminated char array with given color to position (ox, oy) on given buffer.


void gpu_swap_buf

  • void

Swaps front- and backbuffer.


void gpu_send_buf

  • Buffer buffer
  • uint8_t ox
  • uint8_t oy
  • uint8_t sx
  • uint8_t sy
  • const uint8_t *buffer

Sends data from buffer of given width sx and height xy to position (ox, oy) on given buffer.


void gpu_display_buf

  • Buffer buffer
  • uint8_t ox
  • uint8_t oy
  • uint8_t sx
  • uint8_t sy
  • const uint8_t *buffer

Calls gpu_send_buf() and gpu_swap_buf() in order.


void gpu_send_alpha_buf

  • Buffer buffer
  • uint8_t ox
  • uint8_t oy
  • uint8_t sx
  • uint8_t sy
  • uint8_t alpha
  • const uint8_t *buffer

Like gpu_send_buf() but pixels of color are excluded from rendering.


void gpu_blank

  • Buffer buffer
  • uint8_t blank_with

Sets every bit in the video buffer to <blank_with>, subsequently only color 0 or color 7 are possible


void gpu_reset

  • void

Resets the GPU.


void gpu_update_palette

  • const uint16_t *palette

Sets data at <palette> as new palette, where every color equals one uint16_t as gpio port configuration.


void gpu_request_drm

  • void

Changes rendering mode to direct rendering (DRM).


void gpu_block_frame

  • void

Waits for next rising edge of gpu_ready.


void gpu_block_frames

  • uint32_t frames

Calls gpu_wait_for_ready() times.


void gpu_block_ack

  • void

Wait until last gpu operation is concluded.


Clone this wiki locally