Implemented basic occlusions queries
This commit is contained in:
@@ -18,9 +18,8 @@
|
||||
using namespace Seele;
|
||||
|
||||
bool usePositionOnly = false;
|
||||
bool useViewCulling = false;
|
||||
bool useDepthCulling = false;
|
||||
bool useLightCulling = false;
|
||||
bool resetVisibility = false;
|
||||
|
||||
GameView::GameView(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo& createInfo, std::string dllPath)
|
||||
: View(graphics, window, createInfo, "Game"), scene(new Scene(graphics)), gameInterface(dllPath) {
|
||||
@@ -92,16 +91,13 @@ void GameView::keyCallback(KeyCode code, InputAction action, KeyModifier modifie
|
||||
std::cout << "Use Pos only " << usePositionOnly << std::endl;
|
||||
}
|
||||
if (code == KeyCode::KEY_O && action == InputAction::RELEASE) {
|
||||
useViewCulling = !useViewCulling;
|
||||
std::cout << "Use View Culling " << useViewCulling << std::endl;
|
||||
useDepthCulling = !useDepthCulling;
|
||||
std::cout << "Use Depth Culling " << useDepthCulling << std::endl;
|
||||
}
|
||||
if (code == KeyCode::KEY_L && action == InputAction::RELEASE) {
|
||||
useLightCulling = !useLightCulling;
|
||||
std::cout << "Use Light Culling " << useLightCulling << std::endl;
|
||||
}
|
||||
if (code == KeyCode::KEY_R && action == InputAction::RELEASE) {
|
||||
resetVisibility = true;
|
||||
}
|
||||
}
|
||||
|
||||
void GameView::mouseMoveCallback(double xPos, double yPos) { keyboardSystem->mouseCallback(xPos, yPos); }
|
||||
|
||||
Reference in New Issue
Block a user