90 Commits

Author SHA1 Message Date
Jarrett Johnson
6977216eb1 PYMOL-5169: Move VertexBufferGL to generalized VertexBuffer (etc) 2025-09-26 12:07:31 -04:00
Jarrett Johnson
34793089d8 GPU Buffer renaming 2025-09-26 12:07:26 -04:00
Jarrett Johnson
15cb785d71 fix movie.produce 2025-01-10 17:04:02 -05:00
Jarrett Johnson
909c81ef24 Remove unused variables 2025-01-04 21:28:56 -05:00
Jarrett Johnson
d1bf1f9f75 Fix Label BGs not rendering 2025-01-04 12:37:23 -05:00
Jarrett Johnson
3dadcb0987 Separate CGO to VBO logic out into functions 2024-08-30 10:10:39 -04:00
Jarrett Johnson
eb606c33c8 Remove unused returnData 2024-08-30 10:09:08 -04:00
Jarrett Johnson
daab1efa58 Use vector for memory alloc 2024-08-30 10:09:04 -04:00
Jarrett Johnson
3b097edb0e Use struct for total vert counts in CGO.cpp 2024-08-30 10:08:52 -04:00
Jarrett Johnson
ef9bcd85a1 Remove _PYMOL_IOS (Discontinued; prep for MVK) 2024-08-30 10:05:58 -04:00
Jarrett Johnson
4fc7e18121 CGO_sz left adjusted 2024-08-13 14:56:25 -04:00
Jarrett Johnson
fd4e3a8e20 clang-format CGO.cpp 2024-06-02 21:37:27 -04:00
Jarrett Johnson
8a45f24669 PYMOL-4654: Generic Buffer cleanup (1st pass) 2024-06-02 21:31:30 -04:00
Gabriel Marques
ceb0eefd16 PrintUtils.h inclusion 2024-06-02 21:29:31 -04:00
Gabriel Marques
9cefa38079 Print CGO table (backported from Incentive) 2024-06-02 21:23:13 -04:00
Jarrett Johnson
83f11bc317 More Replace NULL with nullptr 2024-06-02 20:44:43 -04:00
Jarrett Johnson
fbfda4a257 Replace NULL with nullptr 2024-05-20 09:07:33 -04:00
Jarrett Johnson
195f4d18d7 Address some compilation errors 2024-05-11 01:07:07 -04:00
Jarrett Johnson
1180fec349 Replace makeshift C++17 with standard 2024-04-10 12:31:16 -04:00
Jarrett Johnson
174b4f15f7 PYMOL-4697: Move OpenGL code out of Texture module 2024-01-30 18:34:40 -05:00
Jarrett Johnson
429576592e Fix GetVertexFormatBaseType switch 2024-01-30 16:44:06 -05:00
Jarrett Johnson
db240df7f7 PYMOL-4510: Toward API Agnostic GPU Buffers 2024-01-30 16:43:55 -05:00
Jarrett Johnson
6bfc590446 PYMOL-4025 ObjectCurve 2024-01-30 15:30:40 -05:00
Jarrett Johnson
c099c3526e PYMOL-4021-23 Tessellation Shader & Bezier CGO 2024-01-30 15:16:24 -05:00
Jarrett Johnson
59ca205a81 cgo::draw::cone 2022-08-17 15:04:34 -04:00
Jarrett Johnson
8b553202bc Fix CGOs with abnormally small values not displaying
Fix #220
2022-05-04 17:08:52 -04:00
Jarrett Johnson
74894e01da Generic CGO Render 2022-03-08 15:16:16 -05:00
Jarrett Johnson
34e39904c8 PYMOL-3766 Move GL code out of CGO.cpp
API-specific behavior is now done in separate files
2022-03-08 15:07:49 -05:00
Jarrett Johnson
65835f9991 Remove OOMac 2021-07-07 12:03:25 -04:00
Thomas Holder
dc2aff4133 Refactor: Doxygen comments, ObjectMoleculeUpdateNeighbors
- Use proper doxygen syntax for all function comments
- ObjectMoleculeUpdateNeighbors allow const argument
- Remove obsolete ObjectMolecule::BondCounter
2021-01-14 15:23:06 +01:00
Thomas Holder
7833037c5e CGOOptimizeToVBO: Call CGOCombineBeginEnd
CGOOptimizeToVBONotIndexed and CGOOptimizeToVBOIndexed will
automatically call CGOCombineBeginEnd if the input CGO has Begin/End
operations. They will also set `use_shader` on the CGO.

Fixes `set cgo_debug; wizard demo, raster3d`

Eliminate various CGOFree calls by using unique_ptr.
2020-12-11 13:01:38 +01:00
Jarrett Johnson
4431dd0ce2 Settings copied on object copy 2020-10-16 11:07:17 +02:00
Thomas Holder
a5fcfcbf58 Refactor CGO vertexVals allocation & magic numbers 2020-09-22 11:17:21 +02:00
Jarrett Johnson
40f99bb7cb CGOOptimizeSpheresToVBONonIndexed refactor 2020-09-22 11:06:01 +02:00
Thomas Holder
14302dbc99 Fix Windows build
Regression of ee770f7937

Fixes #126
2020-09-07 11:02:36 +02:00
Thomas Holder
ee770f7937 Refactor: Some stronger typing (enum class, const)
- enum class cCylCap
- enum class ss_t (RepCartoon)
- const
2020-09-03 09:58:06 +02:00
Thomas Holder
d020c80214 PYMOL-1538 Picking support for ObjectCGO
No nice API available yet. Pick event can be captured like this:

>>> cmd.button("single_left", "none", "clik")
>>> cmd.set_key("F1", lambda: print(_cmd.get_click_string(cmd._COb)))

(press "F1" after a pick)

- Add pick colors to CGO demo (for testing/demo)
2020-08-06 13:03:06 +02:00
Thomas Holder
085f45b4f8 CGOProcessCGOtoArrays: Remove redundant code 2020-08-06 11:40:39 +02:00
Thomas Holder
debb2e984e CGOTurnLightingOnLinesOff: Add missing break 2020-08-06 11:40:32 +02:00
Thomas Holder
1925f1f6e9 Disable unused CGO functions 2020-07-03 15:24:45 +02:00
Jarrett Johnson
1c26a96739 Named Renderpasses 2020-07-03 15:00:38 +02:00
Vedran Miletić
361a407727 Removed "using namespace std;" in layer[012] files 2020-06-26 13:19:39 +02:00
Thomas Holder
38900aa4bd Remove sphere_mode=5 (ARB sphere shader) 2020-06-22 11:17:28 +02:00
Thomas Holder
cbf9baef9e remove CGODeleter 2020-05-15 11:33:56 +02:00
Thomas Holder
d4e06bf056 CGO constructor and destructor 2020-05-15 11:33:47 +02:00
Thomas Holder
54b1bd43d3 fix crash with ramped CGO and use_shaders=0
Related: PYMOL-1517
2020-04-09 16:00:23 +02:00
Thomas Holder
bb6a1a11e2 fix ribbon ramp interpolation 2020-04-09 16:00:21 +02:00
Thomas Holder
54595ff88a fix PYMOL-3118 CGO integer overflow 2020-04-09 16:00:19 +02:00
Thomas Holder
fb1c556643 PYMOL-3361 eliminate CGO_MASK
- Use CGO::iterator
- Use `const`
2020-04-09 15:59:25 +02:00
Thomas Holder
428ec73dc9 fix PYMOL-3360 Loading PSE with corrupted CGO 2020-02-20 11:53:19 +01:00