Comments (1)
A use case on 2ship for this is the ability to have an Array of CollisionPoly
.
At a minimum, we would need a way to return a pointer to the start of the "array", and a way to query the array size.
On the port side we would create the CollisionPoly
type, and I'm guessing some form of CollisionPolyFactory
and some new Ship::ResourceFactoryBinaryArray
.
If Ship::Array
remains as an actual resource that implements ReadResource
, then the CollisionPolyFactory
would probably need a new type of "read" method that can be passed in the current reader as part of some loop within the Array factory. Then the Array resource would manage the memory (destructing each CollisionPoly when the Array is destructed).
If Ship::Array
becomes some kind of template, then the CollisionPolyFactory
would become solely responsible for reading the full resource. Presumably this would require registering this uniquely with the resource manager and have dedicated meta init data.
What I'm not fully aware of is what would be "registered" and what would go in the init meta data.
(This is just my random thoughts on the matter, but there is probably other ways to handle this as well)
from libultraship.
Related Issues (20)
- Fix memory leaks in DisplayListFactory.
- don't use cvar for dropped files
- Remove LUS resources from `RegisterGlobalResourceFactories`
- Delete the `1.x` branch
- Newer StormLib significantly slower loading OTR files HOT 2
- Remove the WindowBackend enum from Ship code.
- Do not require Context to use Fast3dWindow.
- Remove redundant `Ship::`
- Analyze vectors that we return as shared pointers, and make sure that we want to in that situation.
- Class headers should be included via the `"ship/"` or `"libultraship/"` directory.
- see if we can use `SDL_GetKeyboardState` instead of getting it from the window HOT 1
- Add "mute when in background" option HOT 1
- Move current Array resource type out of LUS
- Remove most LUS resource types/factories
- Only auto-configure one controller device automatically HOT 6
- Allow setting keyboard defaults in the new input editor HOT 2
- find a solution we're happy with to replace the temp cvar for color clamping HOT 1
- Add native runtime mip map generation to Fast3D
- Decide if we want AudioBackend enum HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libultraship.