Add support for multisample antialiasing - #319
Conversation
Free memory for int and float array uniforms when the uniform or shader is destroyed.
Adds a new signature for texture constructors that accepts an object for the third argument.
|
Doesn’t it already allow you provide either a solid color or buffer? Agreed that passing an object is more future-proof though. |
|
Yeah, I think this is the point where it gets unwieldy to have many signatures, and this is easier to have different combinations, so I made sure it replicated the existing functionality for constructing a new surface (except for textures loaded from file, which multisampling doesn't work/make sense for anyway) |
|
BTW, |
|
I was recently told the current Ubuntu LTS includes 5.2.x, and I'm pretty sure homebrew has 5.2 also, so that shouldn't be an issue. |
|
Does |
c4a1aa9 to
bd48982
Compare
Adds a new signature for texture constructors that accepts an object for the third argument so that textures can be constructed with a color or buffer and multisampling.
Multisampling has to be ignored if content is provided because the underlying buffer seems to change. (I got graphical glitches when I tried)