* WIP: upload textures with the bottom-left-origin convention, as OpenGL expects * unflip: fix spellcard_walloftext, text_hud * unflip: fix reimu's and marisa's bombs * unflip: fix stagetext * unflip: fix graph.frag.glsl * fix sprite_circleclipped_indicator
28 lines
1.2 KiB
C
28 lines
1.2 KiB
C
/*
|
|
* This software is licensed under the terms of the MIT-License
|
|
* See COPYING for further information.
|
|
* ---
|
|
* Copyright (c) 2011-2018, Lukas Weber <laochailan@web.de>.
|
|
* Copyright (c) 2012-2018, Andrei Alexeyev <akari@alienslab.net>.
|
|
*/
|
|
|
|
#pragma once
|
|
#include "taisei.h"
|
|
|
|
#include "fbpair.h"
|
|
|
|
void set_ortho(float w, float h);
|
|
void colorfill(float r, float g, float b, float a);
|
|
void fade_out(float f);
|
|
void draw_stars(int x, int y, int numstars, int numfrags, int maxstars, int maxfrags, float alpha, float star_width);
|
|
void draw_framebuffer_tex(Framebuffer *fb, double width, double height);
|
|
void draw_framebuffer_attachment(Framebuffer *fb, double width, double height, FramebufferAttachment attachment);
|
|
|
|
void fbutil_create_attachments(Framebuffer *fb, uint num_attachments, FBAttachmentConfig attachments[num_attachments]);
|
|
void fbutil_destroy_attachments(Framebuffer *fb);
|
|
void fbutil_resize_attachment(Framebuffer *fb, FramebufferAttachment attachment, uint width, uint height);
|
|
|
|
void init_blur_shader(ShaderProgram *prog, size_t kernel_size, float sigma);
|
|
|
|
void flip_bitmap(char *data, size_t rows, size_t row_length);
|
|
void flip_bitmap_copy(char *dst, const char *src, size_t rows, size_t row_length);
|