made editmode face copy menu appier with when there is no active face (without options that required an active face)
active face drawing didnt always work since it used the last selected element for drawing. moved stipple into glutil.c rather then using 128 bytes in the stack for each stipple draw.
This commit is contained in:
@@ -54,6 +54,43 @@
|
||||
#define GL_CLAMP_TO_EDGE 0x812F
|
||||
#endif
|
||||
|
||||
/* defined in BIF_gl.h */
|
||||
GLubyte stipple_halftone[128] = {
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55,
|
||||
0xAA, 0xAA, 0xAA, 0xAA, 0x55, 0x55, 0x55, 0x55};
|
||||
|
||||
|
||||
/* repeate this pattern
|
||||
X000X000
|
||||
00000000
|
||||
00X000X0
|
||||
00000000 */
|
||||
|
||||
|
||||
GLubyte stipple_quarttone[128] = {
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0,
|
||||
136,136,136,136,0,0,0,0,34,34,34,34,0,0,0,0};
|
||||
|
||||
|
||||
/* Invert line handling */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user