Blender V2.61 - r43446
Classes | Typedefs | Functions

render_opengl.c File Reference

#include <math.h>
#include <string.h>
#include <stddef.h>
#include <GL/glew.h>
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_dlrbTree.h"
#include "BLI_utildefines.h"
#include "BLI_jitter.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_writeavi.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "ED_image.h"
#include "RE_pipeline.h"
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "GPU_extensions.h"
#include "wm_window.h"
#include "render_intern.h"

Go to the source code of this file.

Classes

struct  OGLRender

Typedefs

typedef struct OGLRender OGLRender

Functions

static unsigned int screen_opengl_layers (OGLRender *oglrender)
static void screen_opengl_render_apply (OGLRender *oglrender)
static int screen_opengl_render_init (bContext *C, wmOperator *op)
static void screen_opengl_render_end (bContext *C, OGLRender *oglrender)
static int screen_opengl_render_cancel (bContext *C, wmOperator *op)
static int screen_opengl_render_anim_initialize (bContext *C, wmOperator *op)
static int screen_opengl_render_anim_step (bContext *C, wmOperator *op)
static int screen_opengl_render_modal (bContext *C, wmOperator *op, wmEvent *event)
static int screen_opengl_render_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int screen_opengl_render_exec (bContext *C, wmOperator *op)
void RENDER_OT_opengl (wmOperatorType *ot)

Detailed Description

Definition in file render_opengl.c.


Typedef Documentation

typedef struct OGLRender OGLRender

Function Documentation

void RENDER_OT_opengl ( wmOperatorType ot)
static unsigned int screen_opengl_layers ( OGLRender oglrender) [static]
static int screen_opengl_render_anim_initialize ( bContext C,
wmOperator op 
) [static]
static int screen_opengl_render_anim_step ( bContext C,
wmOperator op 
) [static]
static void screen_opengl_render_apply ( OGLRender oglrender) [static]

Definition at line 116 of file render_opengl.c.

References add_vn_vn(), OGLRender::ar, BKE_image_acquire_ibuf(), BKE_image_release_ibuf(), BKE_makepicstring(), BKE_stamp_buf(), BKE_write_ibuf_as(), BLI_initjit(), OGLRender::bmain, Scene::camera, View3D::camera, RenderData::cfra, RenderData::color_mgt_flag, copy_m4_m4(), ED_view3d_draw_offscreen(), ED_view3d_draw_offscreen_imbuf_simple(), ED_view3d_viewplane_get(), FALSE, FILE_MAX, GPU_offscreen_bind(), GPU_offscreen_read_pixels(), GPU_offscreen_unbind(), IB_PROFILE_LINEAR_RGB, IB_PROFILE_SRGB, IB_rectfloat, RenderData::im_format, OGLRender::ima, image_buffer_rect_update(), IMB_buffer_float_from_float(), IMB_color_to_bw(), IMB_freeImBuf(), ImageFormatData::imtype, OGLRender::iuser, MEM_freeN(), MEM_mallocN(), RenderData::mode, mul_vn_vn_fl(), Main::name, NULL, OB_SOLID, OGLRender::ofs, orthographic_m4(), RenderData::osa, RegionView3D::persmat, RegionView3D::persp, perspective_m4(), RenderData::pic, ImageFormatData::planes, Scene::r, R_COLOR_MANAGEMENT, R_EXTENSION, R_IMF_CHAN_DEPTH_8, R_OSA, R_STAMP_ALL, R_STAMP_DRAW, OGLRender::re, RE_AcquireResultRead(), RE_GetCameraWindow(), RE_ReleaseResult(), ImBuf::rect_float, RenderResult::rectf, RenderResult::rectx, RenderResult::recty, OGLRender::rv3d, RV3D_CAMOB, RenderData::scemode, OGLRender::scene, OGLRender::sizex, OGLRender::sizey, RenderData::stamp, TRUE, OGLRender::v3d, window_translate_m4(), OGLRender::write_still, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

Referenced by screen_opengl_render_anim_step(), screen_opengl_render_exec(), and screen_opengl_render_modal().

static int screen_opengl_render_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 397 of file render_opengl.c.

References wmOperator::customdata, OPERATOR_CANCELLED, and screen_opengl_render_end().

Referenced by RENDER_OT_opengl().

static void screen_opengl_render_end ( bContext C,
OGLRender oglrender 
) [static]
static int screen_opengl_render_exec ( bContext C,
wmOperator op 
) [static]
static int screen_opengl_render_init ( bContext C,
wmOperator op 
) [static]
static int screen_opengl_render_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int screen_opengl_render_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]