Posted By: Saturnus
Wrong colors in built-in draw functions (8.10 public beta) - 12/18/10 17:14
The following code gives me unexpected results in both 8.10 public beta and 7.86.
The code should draw a red line, a yellow point and an orange point.
However, in 8.10 the line is grey in color (128/128/128) and the two points are both yellow in color (5/255/255, BGR).
In 7.86 the line is displayed correctly but the points are displayed as in 8.10.
I have the latest DirectX runtime installed.
The code should draw a red line, a yellow point and an orange point.
However, in 8.10 the line is grey in color (128/128/128) and the two points are both yellow in color (5/255/255, BGR).
In 7.86 the line is displayed correctly but the points are displayed as in 8.10.
I have the latest DirectX runtime installed.
Code:
#include <acknex.h> void main() { level_load(NULL); vec_set(&sky_color, COLOR_WHITE); while (1) { draw_point3d(vector(32, 0, 5), vector(0, 255, 255), 100, 2); draw_point3d(vector(32, 0, -5), vector(0, 128, 255), 100, 2); draw_line3d(vector(32, -32, 0), NULL, 100); draw_line3d(vector(32, -32, 0), vector(0, 0, 255), 100); draw_line3d(vector(32, 32, 0), vector(0, 0, 255), 100); wait(1); } }