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

wm_draw.c File Reference

#include <stdlib.h>
#include <string.h>
#include <GL/glew.h>
#include "DNA_listBase.h"
#include "DNA_screen_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_userdef_types.h"
#include "DNA_view3d_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLI_math_base.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "GHOST_C-api.h"
#include "ED_screen.h"
#include "GPU_draw.h"
#include "GPU_extensions.h"
#include "RE_engine.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_draw.h"
#include "wm_window.h"
#include "wm_event_system.h"

Go to the source code of this file.

Classes

struct  wmDrawTriple

Defines

#define WIN_NONE_OK   0
#define WIN_BACK_OK   1
#define WIN_FRONT_OK   2
#define WIN_BOTH_OK   3
#define MAX_N_TEX   3

Typedefs

typedef struct wmDrawTriple wmDrawTriple

Functions

static void wm_paintcursor_draw (bContext *C, ARegion *ar)
static void wm_area_mark_invalid_backbuf (ScrArea *sa)
static int wm_area_test_invalid_backbuf (ScrArea *sa)
static void wm_region_test_render_do_draw (ScrArea *sa, ARegion *ar)
static void wm_method_draw_full (bContext *C, wmWindow *win)
static void wm_flush_regions_down (bScreen *screen, rcti *dirty)
static void wm_flush_regions_up (bScreen *screen, rcti *dirty)
static void wm_method_draw_overlap_all (bContext *C, wmWindow *win, int exchange)
static void split_width (int x, int n, int *splitx, int *nx)
static void wm_draw_triple_free (wmWindow *win)
static void wm_draw_triple_fail (bContext *C, wmWindow *win)
static int wm_triple_gen_textures (wmWindow *win, wmDrawTriple *triple)
static void wm_triple_draw_textures (wmWindow *win, wmDrawTriple *triple)
static void wm_triple_copy_textures (wmWindow *win, wmDrawTriple *triple)
static void wm_method_draw_triple (bContext *C, wmWindow *win)
static int wm_draw_update_test_window (wmWindow *win)
static int wm_automatic_draw_method (wmWindow *win)
void wm_tag_redraw_overlay (wmWindow *win, ARegion *ar)
void wm_draw_update (bContext *C)
void wm_draw_window_clear (wmWindow *win)
void wm_draw_region_clear (wmWindow *win, ARegion *ar)
void WM_redraw_windows (bContext *C)

Detailed Description

Definition in file wm_draw.c.


Define Documentation

#define MAX_N_TEX   3

Definition at line 350 of file wm_draw.c.

Referenced by wm_triple_gen_textures().

#define WIN_BACK_OK   1

Definition at line 70 of file wm_draw.c.

Referenced by wm_method_draw_overlap_all().

#define WIN_BOTH_OK   3

Definition at line 72 of file wm_draw.c.

Referenced by wm_method_draw_overlap_all().

#define WIN_FRONT_OK   2

Definition at line 71 of file wm_draw.c.

Referenced by wm_method_draw_overlap_all().

#define WIN_NONE_OK   0

Definition at line 69 of file wm_draw.c.

Referenced by wm_draw_window_clear(), wm_flush_regions_down(), and wm_flush_regions_up().


Typedef Documentation

typedef struct wmDrawTriple wmDrawTriple

Function Documentation

static void split_width ( int  x,
int  n,
int *  splitx,
int *  nx 
) [static]

Definition at line 359 of file wm_draw.c.

References is_power_of_2_i(), power_of_2_max_i(), and power_of_2_min_i().

Referenced by wm_triple_gen_textures().

static void wm_area_mark_invalid_backbuf ( ScrArea sa) [static]
static int wm_area_test_invalid_backbuf ( ScrArea sa) [static]
static int wm_automatic_draw_method ( wmWindow win) [static]
void wm_draw_region_clear ( wmWindow win,
ARegion ar 
)
static void wm_draw_triple_fail ( bContext C,
wmWindow win 
) [static]
static void wm_draw_triple_free ( wmWindow win) [static]
void wm_draw_update ( bContext C)
static int wm_draw_update_test_window ( wmWindow win) [static]
void wm_draw_window_clear ( wmWindow win)
static void wm_flush_regions_down ( bScreen screen,
rcti dirty 
) [static]
static void wm_flush_regions_up ( bScreen screen,
rcti dirty 
) [static]
static void wm_method_draw_full ( bContext C,
wmWindow win 
) [static]
static void wm_method_draw_overlap_all ( bContext C,
wmWindow win,
int  exchange 
) [static]
static void wm_method_draw_triple ( bContext C,
wmWindow win 
) [static]
static void wm_paintcursor_draw ( bContext C,
ARegion ar 
) [static]
void WM_redraw_windows ( bContext C)
static void wm_region_test_render_do_draw ( ScrArea sa,
ARegion ar 
) [static]
void wm_tag_redraw_overlay ( wmWindow win,
ARegion ar 
)
static void wm_triple_copy_textures ( wmWindow win,
wmDrawTriple triple 
) [static]
static void wm_triple_draw_textures ( wmWindow win,
wmDrawTriple triple 
) [static]
static int wm_triple_gen_textures ( wmWindow win,
wmDrawTriple triple 
) [static]