mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
define CLIP_LEFT/RIGHT etc
This commit is contained in:
parent
83f428e799
commit
7668e53c8c
2 changed files with 13 additions and 3 deletions
|
|
@ -33,8 +33,10 @@
|
|||
|
||||
|
||||
#include "pipe/p_util.h"
|
||||
#include "draw_context.h"
|
||||
#include "draw_private.h"
|
||||
|
||||
|
||||
#ifndef IS_NEGATIVE
|
||||
#define IS_NEGATIVE(X) ((X) < 0.0)
|
||||
#endif
|
||||
|
|
@ -136,9 +138,6 @@ static void interp( const struct clipper *clip,
|
|||
}
|
||||
|
||||
|
||||
#define CLIP_USER_BIT 0x40
|
||||
#define CLIP_CULL_BIT 0x80
|
||||
|
||||
|
||||
static INLINE float dot4( const float *a,
|
||||
const float *b )
|
||||
|
|
|
|||
|
|
@ -46,6 +46,17 @@ struct draw_context;
|
|||
struct draw_stage;
|
||||
|
||||
|
||||
#define CLIP_RIGHT_BIT 0x01
|
||||
#define CLIP_LEFT_BIT 0x02
|
||||
#define CLIP_TOP_BIT 0x04
|
||||
#define CLIP_BOTTOM_BIT 0x08
|
||||
#define CLIP_NEAR_BIT 0x10
|
||||
#define CLIP_FAR_BIT 0x20
|
||||
#define CLIP_USER_BIT 0x40
|
||||
#define CLIP_CULL_BIT 0x80
|
||||
|
||||
|
||||
|
||||
struct draw_context *draw_create( void );
|
||||
|
||||
void draw_destroy( struct draw_context *draw );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue