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

wm_subwindow.c File Reference

#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_windowmanager_types.h"
#include "DNA_screen_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BIF_gl.h"
#include "GPU_extensions.h"
#include "WM_api.h"
#include "wm_subwindow.h"
#include "wm_window.h"

Go to the source code of this file.

Classes

struct  wmSubWindow

Typedefs

typedef struct wmSubWindow wmSubWindow

Functions

static void wm_subwindow_free (wmSubWindow *UNUSED(swin))
void wm_subwindows_free (wmWindow *win)
int wm_subwindow_get (wmWindow *win)
static wmSubWindowswin_from_swinid (wmWindow *win, int swinid)
void wm_subwindow_getsize (wmWindow *win, int swinid, int *x, int *y)
void wm_subwindow_getorigin (wmWindow *win, int swinid, int *x, int *y)
void wm_subwindow_getmatrix (wmWindow *win, int swinid, float mat[][4])
int wm_subwindow_open (wmWindow *win, rcti *winrct)
void wm_subwindow_close (wmWindow *win, int swinid)
void wm_subwindow_position (wmWindow *win, int swinid, rcti *winrct)
void wmSubWindowScissorSet (wmWindow *win, int swinid, rcti *srct)
void wmSubWindowSet (wmWindow *win, int swinid)
void wmFrustum (float x1, float x2, float y1, float y2, float n, float f)
void wmOrtho (float x1, float x2, float y1, float y2, float n, float f)
void wmOrtho2 (float x1, float x2, float y1, float y2)
unsigned int index_to_framebuffer (int index)
void WM_set_framebuffer_index_color (int index)
int WM_framebuffer_to_index (unsigned int col)

Variables

static wmWindow_curwindow = NULL
static wmSubWindow_curswin = NULL

Detailed Description

Definition in file wm_subwindow.c.


Typedef Documentation

typedef struct wmSubWindow wmSubWindow

Function Documentation

unsigned int index_to_framebuffer ( int  index)

Definition at line 345 of file wm_subwindow.c.

References GPU_color_depth(), and i.

Referenced by WM_set_framebuffer_index_color().

static wmSubWindow* swin_from_swinid ( wmWindow win,
int  swinid 
) [static]
int WM_framebuffer_to_index ( unsigned int  col)
void WM_set_framebuffer_index_color ( int  index)
void wm_subwindow_close ( wmWindow win,
int  swinid 
)
static void wm_subwindow_free ( wmSubWindow UNUSEDswin) [static]

Definition at line 81 of file wm_subwindow.c.

Referenced by wm_subwindow_close(), and wm_subwindows_free().

int wm_subwindow_get ( wmWindow win)

Definition at line 97 of file wm_subwindow.c.

References wmWindow::curswin, and wmSubWindow::swinid.

void wm_subwindow_getmatrix ( wmWindow win,
int  swinid,
float  mat[][4] 
)
void wm_subwindow_getorigin ( wmWindow win,
int  swinid,
int *  x,
int *  y 
)
void wm_subwindow_getsize ( wmWindow win,
int  swinid,
int *  x,
int *  y 
)
int wm_subwindow_open ( wmWindow win,
rcti winrct 
)
void wm_subwindow_position ( wmWindow win,
int  swinid,
rcti winrct 
)
void wm_subwindows_free ( wmWindow win)
void wmFrustum ( float  x1,
float  x2,
float  y1,
float  y2,
float  n,
float  f 
)

Definition at line 282 of file wm_subwindow.c.

Referenced by setwinmatrixview3d().

void wmOrtho ( float  x1,
float  x2,
float  y1,
float  y2,
float  n,
float  f 
)

Definition at line 290 of file wm_subwindow.c.

Referenced by setwinmatrixview3d(), and wmOrtho2().

void wmOrtho2 ( float  x1,
float  x2,
float  y1,
float  y2 
)
void wmSubWindowScissorSet ( wmWindow win,
int  swinid,
rcti srct 
)
void wmSubWindowSet ( wmWindow win,
int  swinid 
)

Variable Documentation

wmSubWindow* _curswin = NULL [static]

Definition at line 242 of file wm_subwindow.c.

Referenced by wmSubWindowScissorSet().

wmWindow* _curwindow = NULL [static]

Definition at line 241 of file wm_subwindow.c.