Blender V4.3
zbuf.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
16typedef struct ZSpan {
17 int rectx, recty; /* range for clipping */
18
19 int miny1, maxy1, miny2, maxy2; /* actual filled in range */
20 const float *minp1, *maxp1, *minp2, *maxp2; /* vertex pointers detect min/max range in */
21 float *span1, *span2;
23
27void zbuf_alloc_span(struct ZSpan *zspan, int rectx, int recty);
28void zbuf_free_span(struct ZSpan *zspan);
29
34void zspan_scanconvert(struct ZSpan *zspan,
35 void *handle,
36 float *v1,
37 float *v2,
38 float *v3,
39 void (*func)(void *, int, int, float, float));
40
41#ifdef __cplusplus
42}
43#endif
ATTR_WARN_UNUSED_RESULT const BMVert * v2
Definition zbuf.h:16
float * span2
Definition zbuf.h:21
const float * maxp2
Definition zbuf.h:20
int maxy2
Definition zbuf.h:19
int miny1
Definition zbuf.h:19
const float * minp2
Definition zbuf.h:20
const float * maxp1
Definition zbuf.h:20
int maxy1
Definition zbuf.h:19
float * span1
Definition zbuf.h:21
int recty
Definition zbuf.h:17
int miny2
Definition zbuf.h:19
int rectx
Definition zbuf.h:17
const float * minp1
Definition zbuf.h:20
void zspan_scanconvert(struct ZSpan *zspan, void *handle, float *v1, float *v2, float *v3, void(*func)(void *, int, int, float, float))
Definition zbuf.cc:160
struct ZSpan ZSpan
void zbuf_alloc_span(struct ZSpan *zspan, int rectx, int recty)
Definition zbuf.cc:32
void zbuf_free_span(struct ZSpan *zspan)
Definition zbuf.cc:43