Blender V2.61 - r43446
Defines | Typedefs | Enumerations | Functions

drawgpencil.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <math.h>
#include <float.h>
#include "BLO_sys_types.h"
#include "IMB_imbuf_types.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "DNA_gpencil_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_gpencil.h"
#include "WM_api.h"
#include "BIF_gl.h"
#include "BIF_glutil.h"
#include "ED_gpencil.h"
#include "ED_sequencer.h"
#include "ED_view3d.h"
#include "gpencil_intern.h"

Go to the source code of this file.

Defines

#define GP_DRAWTHICKNESS_SPECIAL   3

Typedefs

typedef enum eDrawStrokeFlags eDrawStrokeFlags

Enumerations

enum  eDrawStrokeFlags {
  GP_DRAWDATA_NOSTATUS = (1<<0), GP_DRAWDATA_ONLY3D = (1<<1), GP_DRAWDATA_ONLYV2D = (1<<2), GP_DRAWDATA_ONLYI2D = (1<<3),
  GP_DRAWDATA_IEDITHACK = (1<<4), GP_DRAWDATA_NO_XRAY = (1<<5)
}

Functions

static void gp_draw_stroke_buffer (tGPspoint *points, int totpoints, short thickness, short dflag, short sflag)
static void gp_draw_stroke_point (bGPDspoint *points, short thickness, short dflag, short sflag, int offsx, int offsy, int winx, int winy)
static void gp_draw_stroke_3d (bGPDspoint *points, int totpoints, short thickness, short debug)
static void gp_draw_stroke (bGPDspoint *points, int totpoints, short thickness_s, short dflag, short sflag, short debug, int offsx, int offsy, int winx, int winy)
static void gp_draw_strokes (bGPDframe *gpf, int offsx, int offsy, int winx, int winy, int dflag, short debug, short lthick, float color[4])
static void gp_draw_data (bGPdata *gpd, int offsx, int offsy, int winx, int winy, int cfra, int dflag)
void draw_gpencil_2dimage (bContext *C, ImBuf *ibuf)
void draw_gpencil_view2d (bContext *C, short onlyv2d)
void draw_gpencil_view3d (Scene *scene, View3D *v3d, ARegion *ar, short only3d)

Detailed Description

Definition in file drawgpencil.c.


Define Documentation

#define GP_DRAWTHICKNESS_SPECIAL   3

Definition at line 88 of file drawgpencil.c.

Referenced by gp_draw_stroke(), and gp_draw_stroke_point().


Typedef Documentation


Enumeration Type Documentation

Enumerator:
GP_DRAWDATA_NOSTATUS 
GP_DRAWDATA_ONLY3D 
GP_DRAWDATA_ONLYV2D 
GP_DRAWDATA_ONLYI2D 
GP_DRAWDATA_IEDITHACK 
GP_DRAWDATA_NO_XRAY 

Definition at line 76 of file drawgpencil.c.


Function Documentation

void draw_gpencil_2dimage ( bContext C,
ImBuf ibuf 
)
void draw_gpencil_view2d ( bContext C,
short  onlyv2d 
)
void draw_gpencil_view3d ( Scene scene,
View3D v3d,
ARegion ar,
short  only3d 
)
static void gp_draw_data ( bGPdata gpd,
int  offsx,
int  offsy,
int  winx,
int  winy,
int  cfra,
int  dflag 
) [static]
static void gp_draw_stroke ( bGPDspoint points,
int  totpoints,
short  thickness_s,
short  dflag,
short  sflag,
short  debug,
int  offsx,
int  offsy,
int  winx,
int  winy 
) [static]
static void gp_draw_stroke_3d ( bGPDspoint points,
int  totpoints,
short  thickness,
short  debug 
) [static]

Definition at line 210 of file drawgpencil.c.

References fabsf, and i.

Referenced by gp_draw_strokes().

static void gp_draw_stroke_buffer ( tGPspoint points,
int  totpoints,
short  thickness,
short  dflag,
short  sflag 
) [static]
static void gp_draw_stroke_point ( bGPDspoint points,
short  thickness,
short  dflag,
short  sflag,
int  offsx,
int  offsy,
int  winx,
int  winy 
) [static]
static void gp_draw_strokes ( bGPDframe gpf,
int  offsx,
int  offsy,
int  winx,
int  winy,
int  dflag,
short  debug,
short  lthick,
float  color[4] 
) [static]