Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | /* |
2 | * Portions of this file are copyright Rebirth contributors and licensed as |
||
3 | * described in COPYING.txt. |
||
4 | * Portions of this file are copyright Parallax Software and licensed |
||
5 | * according to the Parallax license below. |
||
6 | * See COPYING.txt for license details. |
||
7 | |||
8 | THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX |
||
9 | SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO |
||
10 | END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A |
||
11 | ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS |
||
12 | IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS |
||
13 | SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE |
||
14 | FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE |
||
15 | CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS |
||
16 | AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. |
||
17 | COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. |
||
18 | */ |
||
19 | |||
20 | /* |
||
21 | * |
||
22 | * Prototypes for C versions of texture mapped scanlines. |
||
23 | * |
||
24 | */ |
||
25 | |||
26 | #pragma once |
||
27 | |||
28 | #ifdef __cplusplus |
||
29 | #include <string> |
||
30 | #include "dxxsconf.h" |
||
31 | |||
32 | #if !DXX_USE_OGL |
||
33 | namespace dcx { |
||
34 | extern void c_tmap_scanline_lin(); |
||
35 | extern void c_tmap_scanline_lin_nolight(); |
||
36 | extern void c_tmap_scanline_flat(); |
||
37 | void c_tmap_scanline_shaded(const uint_fast32_t fade); |
||
38 | |||
39 | struct tmap_scanline_function_table |
||
40 | { |
||
41 | using per = void (); |
||
42 | per *sl_per; |
||
43 | }; |
||
44 | |||
45 | #define cur_tmap_scanline_per (tmap_scanline_functions.sl_per) |
||
46 | #define cur_tmap_scanline_lin (c_tmap_scanline_lin) |
||
47 | #define cur_tmap_scanline_lin_nolight (c_tmap_scanline_lin_nolight) |
||
48 | #define cur_tmap_scanline_shaded (c_tmap_scanline_shaded) |
||
49 | #define cur_tmap_scanline_flat (c_tmap_scanline_flat) |
||
50 | |||
51 | extern tmap_scanline_function_table tmap_scanline_functions; |
||
52 | void select_tmap(const std::string &type); |
||
53 | } |
||
54 | #endif |
||
55 | |||
56 | #endif |