mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
wip
This commit is contained in:
parent
ab486404e5
commit
12cc20f675
@ -139,12 +139,6 @@ event_2(const Event *event, void *) {
|
|||||||
void
|
void
|
||||||
event_0(const Event *event, void *) {
|
event_0(const Event *event, void *) {
|
||||||
// 0: run hacky test.
|
// 0: run hacky test.
|
||||||
|
|
||||||
BamCache *cache = BamCache::get_global_ptr();
|
|
||||||
cache->flush_index();
|
|
||||||
|
|
||||||
return;
|
|
||||||
|
|
||||||
EventParameter param = event->get_parameter(0);
|
EventParameter param = event->get_parameter(0);
|
||||||
WindowFramework *wf;
|
WindowFramework *wf;
|
||||||
DCAST_INTO_V(wf, param.get_ptr());
|
DCAST_INTO_V(wf, param.get_ptr());
|
||||||
@ -152,6 +146,7 @@ event_0(const Event *event, void *) {
|
|||||||
// Create a new offscreen buffer.
|
// Create a new offscreen buffer.
|
||||||
GraphicsWindow *win = wf->get_graphics_window();
|
GraphicsWindow *win = wf->get_graphics_window();
|
||||||
PT(GraphicsOutput) buffer = win->make_texture_buffer("tex", 256, 256);
|
PT(GraphicsOutput) buffer = win->make_texture_buffer("tex", 256, 256);
|
||||||
|
cerr << buffer->get_type() << "\n";
|
||||||
|
|
||||||
// Set the offscreen buffer to render the same scene as the main camera.
|
// Set the offscreen buffer to render the same scene as the main camera.
|
||||||
DisplayRegion *dr = buffer->make_display_region();
|
DisplayRegion *dr = buffer->make_display_region();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user