Michael Ragazzon
|
aba05b4a8e
Update style sheet index cache lookup for faster retrieval of element style definition, see #293.
|
3 years ago |
Michael Ragazzon
|
91f6bfc9d9
Make element definitions const
|
3 years ago |
Michael Ragazzon
|
dc3d23dccc
- Add a property 'resolution' to spritesheets, defines the "native" scaling of the image source.
|
5 years ago |
Michael Ragazzon
|
6247f3e297
Avoid style sheet copies during load, and only compile style sheet when active media blocks change. Cleanup.
|
4 years ago |
Michael Ragazzon
|
b50e8d192e
Add label element
|
4 years ago |
Michael Ragazzon
|
6935810e12
Performance improvement when dirtying vw and vh units
|
4 years ago |
Maximilian Stark
|
48eda79d2c
Added VH and VW units (#162)
|
4 years ago |
Michael Ragazzon
|
e9844e3801
The big restructuring for RmlUi 4.0. This involves breaking changes but should benefit everyone using the library in the future.
|
5 years ago |
Michael Ragazzon
|
6c53cbf85b
Remove #include "precompiled.h" from source files, CMake handles it instead. Include what we actually use in header and source files. For non-precompiled headers measurements indicate ~30% reduction in compile time. See #81.
|
5 years ago |
Michael Ragazzon
|
b4c4c48297
ResolveLength to ResolveNumericProperty, see #55. Angles now require units of deg or rad.
|
6 years ago |
Michael Ragazzon
|
039841c537
Make the resolve length functions safer, returns zero if unsuccessful. Rename to ResolveLength (emphasizes returned unit). Add Element::ResolveLength(property_name). See #55.
|
6 years ago |
Michael Ragazzon
|
4b539c167d
Don't dirty every property during ElementStyle initialization. Only dirty as necessary. Make sure we dirty inherited properties when inserted into a new parent.
|
6 years ago |
Michael Ragazzon
|
836026788b
Clean up element style
|
6 years ago |
Michael Ragazzon
|
d1d72de3f8
Replace PropertyNameList with PropertyIdSet (previously DirtyPropertyList)
|
6 years ago |
Michael Ragazzon
|
cb347e1a38
NULL to nullptr
|
6 years ago |
Michael Ragazzon
|
68f53dce67
Clean up types and aliases, trying to be more consistent.
|
6 years ago |
Michael Ragazzon
|
3691b70f98
Remove ReferenceCountable from StyleSheet
|
6 years ago |
Michael Ragazzon
|
6833c4d5bc
Remove reference countable from element definition
|
6 years ago |
Michael Ragazzon
|
391f39b038
Merge branch 'master' into performance
|
6 years ago |
Michael Ragazzon
|
eff01ba43a
The big rename. We are now RmlUi version 2.0!
|
6 years ago |
Michael Ragazzon
|
9a04ade50b
Cleanup element style and definition.
|
6 years ago |
Michael Ragazzon
|
23e356ae4c
Remove pseudo class properties from element definition. This simplifies the code a whole lot, and makes fetching a new definition a lot faster. This means that we have to fetch new definitions more often (specifically, now also when we set a pseudo class), but despite this, the net performance gains are substantial. We could introduce flags to avoid this later.
|
6 years ago |
Michael Ragazzon
|
64334936cd
ElementStyle cleanup. Add const where appropriate. Remove indirection to local style properties. Replace NULL with nullptr.
|
6 years ago |
Michael Ragazzon
|
3f17844b7e
No need to dirty decorators in update definition anymore. Postpone dirty child definitions to update.
|
6 years ago |
Michael Ragazzon
|
05a24f63d5
Now that we have PropertyIds, we can use a bitset to represent dirty properties, increasing iteration performance.
|
6 years ago |
Michael Ragazzon
|
89821a3e90
WIP PropertyId
|
6 years ago |
Michael Ragazzon
|
85a633693c
Remove the old IterateProperties, replace with new iterators
|
6 years ago |
Michael Ragazzon
|
68eefcaeb0
Move iterators to separate file
|
6 years ago |
Michael Ragazzon
|
d88d67ddc6
Drop the iterator wrapper in element definition
|
6 years ago |
Michael Ragazzon
|
041515844a
Implement iterators for element style
|
6 years ago |