Nuclide
Software Development Kit for id Tech
crosshair.h
Go to the documentation of this file.
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
33void Cross_Draw(string materialPath, vector sizeXY);
34
40void Cross_DrawRGB(string materialPath, vector sizeXY, vector colorRGB);
41
48void Cross_DrawRGBA(string materialPath, vector sizeXY, vector colorRGB, float alphaValue);
49
50
57void Cross_DrawSub(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY);
58
59
67void Cross_DrawSubRGB(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY, vector colorRGB);
68
77void Cross_DrawSubRGBA(string materialPath, vector sizeXY, vector sourcePosXY, vector sourceSizeXY, vector colorRGB, float alphaValue);
78 // 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:36
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:48
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:42
void Cross_Draw(string materialPath, vector sizeXY)
Draws a crosshair on the screen with the desired material and 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:30
void Cross_DrawRGB(string materialPath, vector sizeXY, vector colorRGB)
Draw a given crosshair on the screen, with variable color.
Definition: crosshair.qc:24