mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
wip
This commit is contained in:
parent
ab486404e5
commit
12cc20f675
@ -139,12 +139,6 @@ event_2(const Event *event, void *) {
|
||||
void
|
||||
event_0(const Event *event, void *) {
|
||||
// 0: run hacky test.
|
||||
|
||||
BamCache *cache = BamCache::get_global_ptr();
|
||||
cache->flush_index();
|
||||
|
||||
return;
|
||||
|
||||
EventParameter param = event->get_parameter(0);
|
||||
WindowFramework *wf;
|
||||
DCAST_INTO_V(wf, param.get_ptr());
|
||||
@ -152,6 +146,7 @@ event_0(const Event *event, void *) {
|
||||
// Create a new offscreen buffer.
|
||||
GraphicsWindow *win = wf->get_graphics_window();
|
||||
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.
|
||||
DisplayRegion *dr = buffer->make_display_region();
|
||||
|
Loading…
x
Reference in New Issue
Block a user