Nuclide
Software Development Kit for id Technology
crosshair.h
1/*
2 * Copyright (c) 2016-2022 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
33vector Cross_GetPos(vector sizeXY);
34
39void Cross_Draw(string materialPath, vector sizeXY);
40
46void Cross_DrawRGB(string materialPath, vector sizeXY, vector colorRGB);
47
54void Cross_DrawRGBA(string materialPath, vector sizeXY, vector colorRGB, float alphaValue);
55
56
63void Cross_DrawSub(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY);
64
65
73void Cross_DrawSubRGB(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY, vector colorRGB);
74
83void Cross_DrawSubRGBA(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY, vector colorRGB, float alphaValue);
84 // end of client
void Cross_DrawSub(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY)
Draw a given crosshair on the screen, of only a section from a material.
Definition: crosshair.qc:68
void Cross_DrawSubRGBA(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY, vector colorRGB, float alphaValue)
Draw a given crosshair on the screen, of only a section from a material, with variable color/alpha.
Definition: crosshair.qc:80
void Cross_DrawSubRGB(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY, vector colorRGB)
Draw a given crosshair on the screen, of only a section from a material, with variable color.
Definition: crosshair.qc:74
void Cross_Draw(string materialPath, vector sizeXY)
Draws a crosshair on the screen with the desired material and size.
Definition: crosshair.qc:50
vector Cross_GetPos(vector sizeXY)
Returns the end-coordinates for a crosshair of a given size.
Definition: crosshair.qc:18
void Cross_DrawRGBA(string materialPath, vector sizeXY, vector colorRGB, float alphaValue)
Draw a given crosshair on the screen, with variable color and alpha.
Definition: crosshair.qc:62
void Cross_DrawRGB(string materialPath, vector sizeXY, vector colorRGB)
Draw a given crosshair on the screen, with variable color.
Definition: crosshair.qc:56