Compare commits

...

8 Commits

Author SHA1 Message Date
3d53c8a69f .clang-format 2025-09-21 21:08:33 +03:00
d269f30107 new cmake 2025-04-29 21:51:10 +03:00
5a7158531f icons 2024-11-02 14:15:29 +03:00
7dfaf924e5 shaders in qrc now with prefix 2024-10-23 19:10:31 +03:00
c642ec603f PICODEINFO:: changed 2023-12-08 19:01:50 +03:00
553e24b896 pip 3.15 2023-12-08 16:14:39 +03:00
9d119f5c97 version 1.4.0 2023-11-09 00:38:22 +03:00
5de0f6234d add ObjectBase::<visible>ForAllPresets methods 2023-11-09 00:29:59 +03:00
39 changed files with 35 additions and 25 deletions

View File

@@ -135,7 +135,7 @@ JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature
MacroBlockBegin: "PRIVATE_DEFINITION_START|STATIC_INITIALIZER_BEGIN"
MacroBlockEnd: "PRIVATE_DEFINITION_END|STATIC_INITIALIZER_END"
MacroBlockEnd: "PRIVATE_DEFINITION_END|PRIVATE_DEFINITION_END_NO_INITIALIZE|STATIC_INITIALIZER_END"
MaxEmptyLinesToKeep: 2
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.13)
cmake_policy(SET CMP0072 NEW) # FindOpenGL prefers GLVND by default
if (POLICY CMP0057)
cmake_policy(SET CMP0057 NEW)
@@ -26,7 +26,7 @@ else()
include(SHSTKQtMacros)
set(QGLEngine_MAJOR 1)
set(QGLEngine_MINOR 3)
set(QGLEngine_MINOR 4)
set(QGLEngine_REVISION 0)
set(QGLEngine_SUFFIX "rc")
set(QGLEngine_COMPANY SHS)

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.13)
project(qglengine_core)
if (POLICY CMP0017)
cmake_policy(SET CMP0017 NEW)

View File

@@ -31,7 +31,7 @@
#include <piqt.h>
#include <qad_types.h>
#define SHADERS_DIR ":"
#define SHADERS_DIR ":/qglengine"
using namespace QGLEngineShaders;
@@ -106,7 +106,7 @@ Renderer::Renderer(QGLView * view_)
shader_defines[srLightSpotPass] << "SPOT";
shader_defines[srShadowOmniPass] << "OMNI";
PICodeInfo::EnumInfo * obre = PICodeInfo::enumsInfo->value("Renderer::DeferredBufferRole");
PICodeInfo::EnumInfo * obre = PICODEINFO::enums().value("Renderer::DeferredBufferRole");
if (obre) {
for (auto e: obre->members) {
obr_defines += "#define " + PI2QString(e.name) + " " + QString::number(e.value) + "\n";

View File

@@ -211,6 +211,12 @@ void ObjectBase::setVisible(bool v) {
}
void ObjectBase::setVisibleForAllPresets(bool v) {
for (auto & p: presets)
p.visible = v;
}
void ObjectBase::setReceiveShadows(bool on) {
currentPreset().receive_shadow = on;
setObjectsChanged();

View File

@@ -82,6 +82,10 @@ public:
void setHidden(bool v) { setVisible(!v); }
void show() { setVisible(true); }
void hide() { setVisible(false); }
void setVisibleForAllPresets(bool v);
void setHiddenForAllPresets(bool v) { setVisibleForAllPresets(!v); }
void showForAllPresets() { setVisibleForAllPresets(true); }
void hideForAllPresets() { setVisibleForAllPresets(false); }
bool isReceiveShadows() const { return currentPreset().receive_shadow; }
bool isCastShadows() const { return currentPreset().cast_shadow; }

View File

@@ -1,21 +1,21 @@
<RCC>
<qresource prefix="/">
<file>../../shaders/ds_final.glsl</file>
<file>../../shaders/ds_geom.glsl</file>
<file>../../shaders/ds_light.glsl</file>
<file>../../shaders/ds_tonemap.glsl</file>
<file>../../shaders/fxaa.frag</file>
<file>../../shaders/fxaa.vert</file>
<file>../../shaders/fxaa_v3.h</file>
<file>../../shaders/selection.glsl</file>
<file>../../shaders/selection_apply.glsl</file>
<file>../../shaders/selection_frame.glsl</file>
<file>../../shaders/selection_halo.glsl</file>
<file>../../shaders/service_fill.glsl</file>
<file>../../shaders/service_frame.glsl</file>
<file>../../shaders/service_line.glsl</file>
<file>../../shaders/sum.glsl</file>
<file>../../shaders/shadow.glsl</file>
<file>../../shaders/rescale.glsl</file>
<qresource prefix="/qglengine">
<file>../../shaders/ds_final.glsl</file>
<file>../../shaders/ds_geom.glsl</file>
<file>../../shaders/ds_light.glsl</file>
<file>../../shaders/ds_tonemap.glsl</file>
<file>../../shaders/fxaa.frag</file>
<file>../../shaders/fxaa.vert</file>
<file>../../shaders/fxaa_v3.h</file>
<file>../../shaders/selection.glsl</file>
<file>../../shaders/selection_apply.glsl</file>
<file>../../shaders/selection_frame.glsl</file>
<file>../../shaders/selection_halo.glsl</file>
<file>../../shaders/service_fill.glsl</file>
<file>../../shaders/service_frame.glsl</file>
<file>../../shaders/service_line.glsl</file>
<file>../../shaders/sum.glsl</file>
<file>../../shaders/shadow.glsl</file>
<file>../../shaders/rescale.glsl</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.13)
project(qglengine_widgets)
if (POLICY CMP0017)
cmake_policy(SET CMP0017 NEW)