WIP: Rewrite Graph Editor drawing code #118662

Draft
Christoph Lendenfeld wants to merge 18 commits from ChrisLend/blender:ge_gpu_batch into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
12 changed files with 635 additions and 689 deletions

View File

@ -29,7 +29,7 @@ set(SRC
graph_view.cc
space_graph.cc
graph_intern.h
graph_intern.hh
)
set(LIB

View File

@ -51,7 +51,7 @@
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "graph_intern.h" /* own include */
#include "graph_intern.hh" /* own include */
#define B_REDR 1

File diff suppressed because it is too large Load Diff

View File

@ -58,7 +58,7 @@
#include "WM_api.hh"
#include "WM_types.hh"
#include "graph_intern.h"
#include "graph_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Insert Keyframes Operator

View File

@ -14,11 +14,7 @@ struct SpaceGraph;
struct bAnimContext;
struct bAnimListElem;
struct bContext;
#ifdef __cplusplus
extern "C" {
#endif
struct ListBase;
/* internal exports only */
/* ***************************************** */
@ -256,7 +252,3 @@ bool graphop_selected_fcurve_poll(struct bContext *C);
void graphedit_keymap(struct wmKeyConfig *keyconf);
void graphedit_operatortypes(void);
#ifdef __cplusplus
}
#endif

View File

@ -22,7 +22,7 @@
#include "ED_anim_api.hh"
#include "ED_screen.hh"
#include "graph_intern.h"
#include "graph_intern.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"

View File

@ -40,7 +40,7 @@
#include "WM_api.hh"
#include "WM_types.hh"
#include "graph_intern.h"
#include "graph_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Internal Keyframe Utilities

View File

@ -42,7 +42,7 @@
#include "WM_api.hh"
#include "WM_types.hh"
#include "graph_intern.h"
#include "graph_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Internal Struct & Defines

View File

@ -27,7 +27,7 @@
#include "RNA_prototypes.h"
#include "graph_intern.h" /* own include */
#include "graph_intern.hh" /* own include */
/* -------------------------------------------------------------------- */
/** \name Set Up Drivers Editor

View File

@ -33,7 +33,7 @@
#include "WM_api.hh"
#include "WM_types.hh"
#include "graph_intern.h"
#include "graph_intern.hh"
/* -------------------------------------------------------------------- */
/** \name Calculate Range

View File

@ -48,7 +48,7 @@
#include "BLO_read_write.hh"
#include "graph_intern.h" /* own include */
#include "graph_intern.hh" /* own include */
/* ******************** default callbacks for ipo space ***************** */

View File

@ -463,6 +463,7 @@ typedef struct SpaceGraph_Runtime {
char _pad[7];
/** Sampled snapshots of F-Curves used as in-session guides */
ListBase ghost_curves;
void *render_data;
} SpaceGraph_Runtime;
/** 'Graph' Editor (formerly known as the IPO Editor). */