Kore
Loading...
Searching...
No Matches
graphics.h
Go to the documentation of this file.
1#pragma once
2
3#include <kinc/global.h>
4
5#include <kinc/image.h>
6
7#include "rendertarget.h"
8#include "shader.h"
9#include "vertexstructure.h"
10
11#include <kinc/backend/graphics5/graphics.h>
12
13#include <kinc/math/matrix.h>
14#include <kinc/math/vector.h>
15
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24KINC_FUNC extern bool kinc_g5_fullscreen;
25
30KINC_FUNC bool kinc_g5_supports_raytracing(void);
31
37
43
49
55
61
66KINC_FUNC int kinc_g5_max_bound_textures(void);
67
71KINC_FUNC void kinc_g5_flush(void);
72
77KINC_FUNC int kinc_g5_antialiasing_samples(void);
78
84KINC_FUNC void kinc_g5_set_antialiasing_samples(int samples);
85
90KINC_FUNC void kinc_g5_begin(kinc_g5_render_target_t *renderTarget, int window);
91
97KINC_FUNC void kinc_g5_end(int window);
98
102KINC_FUNC bool kinc_g5_swap_buffers(void);
103
104#ifndef KINC_DOCS
105void kinc_g5_internal_init(void);
106void kinc_g5_internal_init_window(int window, int depth_buffer_bits, int stencil_buffer_bits, bool vsync);
107void kinc_g5_internal_destroy_window(int window);
108void kinc_g5_internal_destroy(void);
109#endif
110
111#ifdef __cplusplus
112}
113#endif
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
KINC_FUNC int kinc_g5_antialiasing_samples(void)
Returns the currently used number of samples for hardware-antialiasing.
Definition graphics.c.h:7
KINC_FUNC void kinc_g5_end(int window)
Needs to be called after rendering to a window. Typically called at the end of each frame.
KINC_FUNC int kinc_g5_max_bound_textures(void)
Returns how many textures can be used at the same time in a fragment-shader.
KINC_FUNC bool kinc_g5_supports_blend_constants(void)
Returns whether blend-constants (see kinc_g4_set_blend_constant and the blending-properties for pipel...
KINC_FUNC void kinc_g5_begin(kinc_g5_render_target_t *renderTarget, int window)
Needs to be called before rendering to a window. Typically called at the start of each frame.
KINC_FUNC bool kinc_g5_supports_raytracing(void)
Returns whether raytracing (see kinc/graphics5/raytrace.h) is supported.
KINC_FUNC bool kinc_g5_swap_buffers(void)
Needs to be called to make the rendered frame visible. Typically called at the very end of each frame...
KINC_FUNC bool kinc_g5_supports_compute_shaders(void)
Returns whether GPU-compute (the functions in kinc/compute/compute.h) is supported.
KINC_FUNC void kinc_g5_flush(void)
I think this does nothing.
KINC_FUNC bool kinc_g5_supports_instanced_rendering(void)
Returns whether instanced rendering (kinc_g5_command_list_draw_indexed_vertices_instanced and pals) i...
KINC_FUNC void kinc_g5_set_antialiasing_samples(int samples)
Sets the number of samples used for hardware-antialiasing. This typically uses multisampling and typi...
Definition graphics.c.h:11
KINC_FUNC bool kinc_g5_supports_non_pow2_textures(void)
Returns whether textures are supported which have widths/heights which are not powers of two.
KINC_FUNC bool kinc_g5_render_targets_inverted_y(void)
Returns whether render-targets are upside down. This happens in OpenGL and there is currently no auto...
Provides functions for handling render-targets.
Provides functions for creating and destroying shaders.
Provides types for setting up the structure of vertices in a vertex-buffer.
Functionality for creating and loading images. Image loading supports PNG, JPEG and the custom K form...
Provides basic matrix types and a few functions which create transformation-matrices....
Provides basic vector types.