fix flight bounds rendering on mac os x
This commit is contained in:
@@ -1438,28 +1438,6 @@ string
|
|||||||
vector
|
vector
|
||||||
-
|
-
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/Misc.cpp
|
|
||||||
noggit/Misc.h
|
|
||||||
-
|
|
||||||
noggit/Selection.h
|
|
||||||
-
|
|
||||||
noggit/ModelInstance.h
|
|
||||||
-
|
|
||||||
noggit/WMOInstance.h
|
|
||||||
-
|
|
||||||
iomanip
|
|
||||||
-
|
|
||||||
map
|
|
||||||
-
|
|
||||||
sstream
|
|
||||||
-
|
|
||||||
string
|
|
||||||
-
|
|
||||||
vector
|
|
||||||
-
|
|
||||||
boost/optional.hpp
|
|
||||||
-
|
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/Model.cpp
|
/Volumes/APFS/NoggitQT/src/noggit/Model.cpp
|
||||||
math/bounding_box.hpp
|
math/bounding_box.hpp
|
||||||
-
|
-
|
||||||
@@ -1490,52 +1468,6 @@ sstream
|
|||||||
string
|
string
|
||||||
-
|
-
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/ModelInstance.cpp
|
|
||||||
math/bounding_box.hpp
|
|
||||||
-
|
|
||||||
math/frustum.hpp
|
|
||||||
-
|
|
||||||
noggit/Log.h
|
|
||||||
-
|
|
||||||
noggit/Misc.h
|
|
||||||
-
|
|
||||||
noggit/Model.h
|
|
||||||
-
|
|
||||||
noggit/ModelInstance.h
|
|
||||||
-
|
|
||||||
noggit/WMOInstance.h
|
|
||||||
-
|
|
||||||
opengl/primitives.hpp
|
|
||||||
-
|
|
||||||
opengl/scoped.hpp
|
|
||||||
-
|
|
||||||
opengl/shader.hpp
|
|
||||||
-
|
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/ModelManager.cpp
|
|
||||||
noggit/AsyncLoader.h
|
|
||||||
-
|
|
||||||
noggit/Log.h
|
|
||||||
-
|
|
||||||
noggit/Model.h
|
|
||||||
-
|
|
||||||
noggit/ModelManager.h
|
|
||||||
-
|
|
||||||
algorithm
|
|
||||||
-
|
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/Particle.cpp
|
|
||||||
noggit/Misc.h
|
|
||||||
-
|
|
||||||
noggit/Particle.h
|
|
||||||
-
|
|
||||||
opengl/context.hpp
|
|
||||||
-
|
|
||||||
opengl/shader.hpp
|
|
||||||
-
|
|
||||||
list
|
|
||||||
-
|
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/Sky.cpp
|
/Volumes/APFS/NoggitQT/src/noggit/Sky.cpp
|
||||||
noggit/DBC.h
|
noggit/DBC.h
|
||||||
-
|
-
|
||||||
@@ -1604,26 +1536,6 @@ string
|
|||||||
vector
|
vector
|
||||||
-
|
-
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/WMOInstance.cpp
|
|
||||||
math/bounding_box.hpp
|
|
||||||
-
|
|
||||||
noggit/Log.h
|
|
||||||
-
|
|
||||||
noggit/MapHeaders.h
|
|
||||||
-
|
|
||||||
noggit/Misc.h
|
|
||||||
-
|
|
||||||
noggit/ModelInstance.h
|
|
||||||
-
|
|
||||||
noggit/WMO.h
|
|
||||||
-
|
|
||||||
noggit/WMOInstance.h
|
|
||||||
-
|
|
||||||
opengl/primitives.hpp
|
|
||||||
-
|
|
||||||
opengl/scoped.hpp
|
|
||||||
-
|
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/World.cpp
|
/Volumes/APFS/NoggitQT/src/noggit/World.cpp
|
||||||
noggit/World.h
|
noggit/World.h
|
||||||
-
|
-
|
||||||
@@ -1892,6 +1804,20 @@ iostream
|
|||||||
boost/utility/in_place_factory.hpp
|
boost/utility/in_place_factory.hpp
|
||||||
-
|
-
|
||||||
|
|
||||||
|
/Volumes/APFS/NoggitQT/src/noggit/ui/About.cpp
|
||||||
|
noggit/ui/About.h
|
||||||
|
-
|
||||||
|
noggit/TextureManager.h
|
||||||
|
-
|
||||||
|
revision.h
|
||||||
|
/Volumes/APFS/NoggitQT/src/noggit/ui/revision.h
|
||||||
|
QIcon
|
||||||
|
-
|
||||||
|
QtWidgets/QLabel
|
||||||
|
-
|
||||||
|
QtWidgets/QVBoxLayout
|
||||||
|
-
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/ui/FlattenTool.cpp
|
/Volumes/APFS/NoggitQT/src/noggit/ui/FlattenTool.cpp
|
||||||
noggit/ui/FlattenTool.hpp
|
noggit/ui/FlattenTool.hpp
|
||||||
-
|
-
|
||||||
@@ -1908,28 +1834,6 @@ QtWidgets/QLabel
|
|||||||
QtWidgets/QRadioButton
|
QtWidgets/QRadioButton
|
||||||
-
|
-
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/ui/ModelImport.cpp
|
|
||||||
noggit/ui/ModelImport.h
|
|
||||||
-
|
|
||||||
noggit/MapView.h
|
|
||||||
-
|
|
||||||
noggit/ModelInstance.h
|
|
||||||
-
|
|
||||||
noggit/Selection.h
|
|
||||||
-
|
|
||||||
noggit/WMOInstance.h
|
|
||||||
-
|
|
||||||
noggit/ui/ObjectEditor.h
|
|
||||||
-
|
|
||||||
fstream
|
|
||||||
-
|
|
||||||
regex
|
|
||||||
-
|
|
||||||
string
|
|
||||||
-
|
|
||||||
QtWidgets/QFormLayout
|
|
||||||
-
|
|
||||||
|
|
||||||
/Volumes/APFS/NoggitQT/src/noggit/ui/ObjectEditor.cpp
|
/Volumes/APFS/NoggitQT/src/noggit/ui/ObjectEditor.cpp
|
||||||
noggit/MapView.h
|
noggit/MapView.h
|
||||||
-
|
-
|
||||||
@@ -4450,6 +4354,10 @@ QtCore/qobject.h
|
|||||||
qbrush.h
|
qbrush.h
|
||||||
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qbrush.h
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qbrush.h
|
||||||
|
|
||||||
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/QIcon
|
||||||
|
qicon.h
|
||||||
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qicon.h
|
||||||
|
|
||||||
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/QPaintEvent
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/QPaintEvent
|
||||||
qevent.h
|
qevent.h
|
||||||
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qevent.h
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qevent.h
|
||||||
@@ -4512,6 +4420,16 @@ QtGui/qvector2d.h
|
|||||||
QtGui/qtouchdevice.h
|
QtGui/qtouchdevice.h
|
||||||
-
|
-
|
||||||
|
|
||||||
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qicon.h
|
||||||
|
QtGui/qtguiglobal.h
|
||||||
|
-
|
||||||
|
QtCore/qsize.h
|
||||||
|
-
|
||||||
|
QtCore/qlist.h
|
||||||
|
-
|
||||||
|
QtGui/qpixmap.h
|
||||||
|
-
|
||||||
|
|
||||||
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qpainter.h
|
/usr/local/Cellar/qt/5.15.0/lib/QtGui.framework/Headers/qpainter.h
|
||||||
QtGui/qtguiglobal.h
|
QtGui/qtguiglobal.h
|
||||||
-
|
-
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
9cc1f248d245595dc0553c7d587584e78e017f9df8c2d94d5790305d8dfad898
|
92a5ca42b78160675c3416345d4fdfe853a7c150bff12600598a413cd07e792f
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define STRPRODUCTVER "3.d4ca960+"
|
#define STRPRODUCTVER "3.1589217+"
|
||||||
|
|||||||
@@ -434,20 +434,30 @@ void MapTile::drawMFBO (opengl::scoped::use_program& mfbo_shader)
|
|||||||
mfbo_shader.attrib("position", 3, GL_FLOAT, GL_FALSE, 0, 0);
|
mfbo_shader.attrib("position", 3, GL_FLOAT, GL_FALSE, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
opengl::scoped::buffer_binder<GL_ELEMENT_ARRAY_BUFFER> ibo_binder(_mfbo_indices);
|
||||||
|
gl.bufferData(GL_ELEMENT_ARRAY_BUFFER, indices.size() * sizeof(uint16_t), indices.data(), GL_STATIC_DRAW);
|
||||||
|
}
|
||||||
|
|
||||||
_mfbo_buffer_are_setup = true;
|
_mfbo_buffer_are_setup = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
opengl::scoped::vao_binder const _(_mfbo_bottom_vao);
|
opengl::scoped::vao_binder const _(_mfbo_bottom_vao);
|
||||||
|
opengl::scoped::buffer_binder<GL_ELEMENT_ARRAY_BUFFER> ibo_binder(_mfbo_indices);
|
||||||
|
|
||||||
mfbo_shader.uniform("color", math::vector_4d(1.0f, 1.0f, 0.0f, 0.2f));
|
mfbo_shader.uniform("color", math::vector_4d(1.0f, 1.0f, 0.0f, 0.2f));
|
||||||
gl.drawElements(GL_TRIANGLE_FAN, indices.size(), GL_UNSIGNED_BYTE, indices.data());
|
gl.drawElements(GL_TRIANGLE_FAN, indices.size(), GL_UNSIGNED_BYTE, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
opengl::scoped::vao_binder const _(_mfbo_top_vao);
|
opengl::scoped::vao_binder const _(_mfbo_top_vao);
|
||||||
|
opengl::scoped::buffer_binder<GL_ELEMENT_ARRAY_BUFFER> ibo_binder(_mfbo_indices);
|
||||||
|
|
||||||
mfbo_shader.uniform("color", math::vector_4d(0.0f, 1.0f, 1.0f, 0.2f));
|
mfbo_shader.uniform("color", math::vector_4d(0.0f, 1.0f, 1.0f, 0.2f));
|
||||||
gl.drawElements(GL_TRIANGLE_FAN, indices.size(), GL_UNSIGNED_BYTE, indices.data());
|
gl.drawElements(GL_TRIANGLE_FAN, indices.size(), GL_UNSIGNED_BYTE, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapTile::drawWater ( math::frustum const& frustum
|
void MapTile::drawWater ( math::frustum const& frustum
|
||||||
|
|||||||
@@ -135,9 +135,10 @@ private:
|
|||||||
opengl::scoped::deferred_upload_vertex_arrays<2> _mfbo_vaos;
|
opengl::scoped::deferred_upload_vertex_arrays<2> _mfbo_vaos;
|
||||||
GLuint const& _mfbo_bottom_vao = _mfbo_vaos[0];
|
GLuint const& _mfbo_bottom_vao = _mfbo_vaos[0];
|
||||||
GLuint const& _mfbo_top_vao = _mfbo_vaos[1];
|
GLuint const& _mfbo_top_vao = _mfbo_vaos[1];
|
||||||
opengl::scoped::deferred_upload_buffers<2> _mfbo_vbos;
|
opengl::scoped::deferred_upload_buffers<3> _mfbo_vbos;
|
||||||
GLuint const& _mfbo_bottom_vbo = _mfbo_vbos[0];
|
GLuint const& _mfbo_bottom_vbo = _mfbo_vbos[0];
|
||||||
GLuint const& _mfbo_top_vbo = _mfbo_vbos[1];
|
GLuint const& _mfbo_top_vbo = _mfbo_vbos[1];
|
||||||
|
GLuint const& _mfbo_indices = _mfbo_vbos[2];
|
||||||
|
|
||||||
// MHDR:
|
// MHDR:
|
||||||
int mFlags;
|
int mFlags;
|
||||||
|
|||||||
Reference in New Issue
Block a user