rdb
7d94f601db
shader: Make Cg load calls fail if compiling without Cg toolkit
2020-05-05 16:54:50 +02:00
rdb
e4573ef0fe
cleanup: Remove more unnecessary nullptr checks before delete
...
Follow-up to #934
2020-05-05 14:46:30 +02:00
rdb
d799a09002
cleanup: Remove support for EOL versions of Python
...
Fixes #905
2020-04-26 20:07:56 +02:00
rdb
f192a0cdb6
gobj: more efficient pickling support for InternalName
...
Rather than going through the TypedWritable/bam route, this encodes InternalNames in a more compact and efficient manner.
2020-04-01 20:31:19 +02:00
rdb
c185de3018
Merge branch 'release/1.10.x'
2020-03-19 20:20:25 +01:00
rdb
eeeea274a4
gobj: make ram image when writing texture with clear color to 6.44 bam
...
This makes it possible to write textures with clear colors to .bam files even when the default bam version of 6.44 is selected. The clear color is converted automatically to a filled RAM image.
Third part of the fix for #844
2020-03-18 17:58:51 +01:00
rdb
707b4fb866
gobj: don't strip .bam textures that contain only a clear color
...
Second part of the fix for #844
2020-03-18 17:51:39 +01:00
rdb
e138096578
gobj: support writing Texture clear colors to .bam files (bam 6.45)
...
This fix requires setting "bam-version 6 45" in Config.prc.
Part of the fix for #844
2020-03-18 17:51:05 +01:00
rdb
1baef394b6
Merge branch 'release/1.10.x'
2020-01-31 11:08:43 +01:00
rdb
e13e9851f2
shader: //Cg profile should only affect the current shader
...
Fixes #863
2020-01-31 11:01:44 +01:00
rdb
89f1a0e63c
shader: separate shader matrix input cache from ShaderMatSpec
...
If multiple ShaderMatSpec entries use the same state matrix, this should result in a reduction in the number of times that state matrix is fetched. This is especially so for arrays, which are now fetched once rather than once for every item.
This is the first step towards trying to solve #846 .
2020-01-25 19:26:50 +01:00
rdb
b272af8bbf
Merge branch 'cmake'
2020-01-22 11:20:51 +01:00
rdb
a8a775ad09
Merge branch 'release/1.10.x'
2020-01-04 02:49:28 +01:00
rdb
0e1b524885
gobj: fix Material ambient/diffuse/specular when reading from bam
...
Fixes #828
2020-01-04 01:21:54 +01:00
Sam Edwards
86e3e6e166
shader: Fix missing include
2019-12-08 14:30:21 -07:00
rdb
406268c2e9
shader: use specific PStatCollector and group markers for shader compile
...
This makes it possible to determine which shader is taking which amount of time to compile.
2019-12-08 15:19:38 +01:00
Leandro Benedet Garcia
ae33d62978
general: Update EXPCL declarations to be MinGW-friendly ( #792 )
2019-11-27 11:25:24 -07:00
rdb
d088263f6f
Merge branch 'release/1.10.x'
2019-11-11 03:28:39 +01:00
rdb
ccca3cca3a
gobj: fix crash printing out residency trackers
2019-11-10 19:23:10 +01:00
rdb
f1b235e065
gobj: use range for where possible in PreparedGraphicsObjects
...
This makes the code easier to read and maintain.
2019-11-09 14:45:00 +01:00
rdb
9201d75bbe
gobj: fix crash on shutdown with cached buffer contexts
...
This was a regression from 207263c1a8
2019-11-09 14:39:49 +01:00
Sam Edwards
9b7bcf2564
Merge branch 'master' into cmake
2019-11-07 21:21:04 -07:00
rdb
847ebf667f
Merge branch 'release/1.10.x'
2019-11-06 10:49:05 +01:00
rdb
78c3db379c
gobj: fix tests crash due to ShaderBuffer context not cleared at GSG death
2019-11-03 11:48:51 +01:00
rdb
a72be90f17
Merge branch 'release/1.10.x'
2019-10-29 23:13:22 +01:00
rdb
3e99d16eb1
gobj: clarify range of GeomPrimitive::offset_vertices() parameters
2019-10-25 10:25:11 +02:00
Sam Edwards
12c16eb9ff
Merge branch 'master' into cmake
2019-10-15 23:43:25 -06:00
rdb
a019520dbc
gobj: don't define GeomVertexReader::empty_buffer in opt3 build
2019-10-08 19:52:42 +02:00
Sam Edwards
5961cc2ee0
Merge branch 'master' into cmake
2019-10-05 15:00:49 -06:00
rdb
207263c1a8
display: handle resource releases in batches, not individually
...
This is intended to eventually replace the old interface, since GSGs may be able to do a batch of prepare/release operations more efficiently.
2019-10-05 21:13:32 +02:00
Sam Edwards
5fa4af9189
CMake: Rely on GNUInstallDirs to specify install paths
...
This makes multiarch OSes happy as they can dictate that
64-bit libraries go into 'lib64'
2019-08-31 00:48:42 -06:00
Sam Edwards
1a654cba04
CMake: Record the location that headers are installed
...
This populates INTERFACE_INCLUDE_DIRECTORIES on the targets
after they're installed.
2019-08-30 22:58:18 -06:00
Sam Edwards
19ed9f6b47
Merge branch 'master' into cmake
2019-08-24 18:07:12 -06:00
rdb
bc563c8664
Merge branch 'release/1.10.x'
2019-08-03 11:24:05 +02:00
rdb
42dff65e4d
general: fix various unprotected debug() outputs
...
These should be protected by an is_debug() check so that they can be optimized out properly in a release build. Setting check-debug-notify-protect in Config.prc can be used to track down cases of missed checks.
2019-08-03 10:33:43 +02:00
rdb
36e1b66349
Merge branch 'release/1.10.x'
2019-07-18 20:21:07 +02:00
rdb
9dd35f9c3a
gobj: default current_thread arg for Geom.get_animated_vertex_data()
2019-07-16 13:40:14 +02:00
rdb
d5788d9422
Merge branch 'release/1.10.x'
2019-07-10 12:22:56 +02:00
rdb
ab238bd153
gobj: support non-affine transformations in calc_tight_bounds
...
This makes it possible to get the 2D bounding volume of an object as it appears on screen.
2019-07-10 09:30:16 +02:00
Sam Edwards
b8f3c7eb63
CMake: Move some symbols from dtool_config.h to -D flags
...
The symbols moved aren't used in any headers, so they don't
have to be in the installed dtool_config.h. Removing them
keeps the recompiling to a minimum when an optional feature
is toggled.
2019-04-15 22:16:05 -06:00
Sam Edwards
6097d34ead
CMake: Neatly format everything for readability and consistency
2019-04-14 22:37:18 -06:00
Sam Edwards
671f15e052
Merge branch 'master' into cmake
2019-04-13 17:29:44 -06:00
rdb
fa53e013cb
gobj: add margin to float comparison in lens.project()
...
Fixes unit tests in double-precision build.
2019-04-02 21:27:08 +02:00
Sam Edwards
f8161cc529
Merge branch 'master' into cmake
2019-03-12 02:03:16 -06:00
rdb
511b0e7af3
gobj: prevent GeomVertexReader/Writer.set_row with negative row
2019-03-10 19:23:05 +01:00
rdb
2574d85049
Merge branch 'release/1.10.x'
2019-02-19 21:38:08 +01:00
rdb
ba3a826bff
gobj: fix crash reading unaligned float4 column in GeomVertexReader
...
Observed when calling flatten_strong() on model with vertex colors loaded via Assimp.
2019-02-17 13:02:56 +01:00
rdb
11b5f09819
general: replace remaining references to ConditionVarFull.
2019-02-11 16:23:16 +01:00
rdb
9d12a4c437
general: improvements to doxygen API reference:
...
* In C++ reference, only pick up classes defined in .h file
* Add a few excludes to C++ reference that aren't public API
* On class index pages, reduce number of columns
* Add @since for some methods/classes that are new in 1.10.0
* Fix/improve a few docstrings here and there
2019-01-23 22:24:02 +01:00
rdb
84a1315104
More fixes to work around broken libc++ eof() in Mac OS X 10.7
2019-01-10 21:53:02 +01:00