…sion with the original code and ours because of row / column major ordering differences.
Additionally implement getParameter(ARRAY_BUFFER_BINDING) and getParameter(ELEMENT_ARRAY_BUFFER_BINDING).
Additionally implement getAttachedShaders.
Additionally implement getParameter(CURRENT_PROGRAM).
Additionally adds support for TEXTURE_BINDING* to getParameter().
…cript name. There are several ways of reference font names, setFontFamily works on the font family name, but in some situations is not as specific as the postscript name.
Change the search path from src/ to src/third_party and remove the third_party prefix from each header include. No functional change, just clearer.
The default values stay as the window (frame) width/height, but now you can override them in the options object. This is useful if you have a different sized framebuffer object bound, for example.
This allows the caller to reuse an SkPath (although this is probably not a huge deal), and also makes the C++ code slightly nicer since it doesn't need to set up the SkPathWrapper. This also follows the C++ API more closely, although I could go either way on it. I prefer explicitly creating objects though so that is the reason for this change. Additionally remove the ->ToString() on the Utf8Value (see previous changes).
Rename the properties to be all lower case. I don't really know what Plask's style should be but generally I don't follow camel case for property names. Avoid any decision making and make them all lowercase which works here since the names are fairly simple. Additionally move the comments (taken from Skia) and follow 80 col lines.
- Don't explicitly set the type to 2d (allow it to default to 3d2d). - Use setFontFamily and not setFontFamilyPostScript. (Arial). - Add a copyright (Marcin Ignac).
This gives the correct results with measureText "fails", for example when we pass NULL as the string to measure. Previously this case returned uninitialized values from the creation of the SkRect.
The Utf8Value constructor takes a Value and will handle the conversion to a string. Additionally it better handles errors, for example when toString() throws an exception. This will create a 0 length Utf8Value with a NULL pointer, which might still not be handled everywhere properly, but is better than the exception happening during us calling ToString() ourselves.
Node has removed support for unix dgram sockets, as was previously used. This is replaced by a socket (stream), which is currently not properly implemented as it should do its own framing to replace the previous datagram framing. It works enough for now.
Fix typo in Vec4.scaled (Vec3 -> Vec4).
The count field is the number of variables not the number of elements. Additionally fix a TODO and support setting arrays of matrices. Also adds checks if the temporary buffer allocation fails. Thanks to Ryan Alexander for the original patch.
…r argument. There was really no need for the template (which works only if the symbol is a function with external linkage). It is probably better to generate less code any with a non-template function, and it will also work with function pointers (for example when using GLEW).
When we create a NSWindow (on 10.7+) call setRestorable:NO.
I am getting old and forgetting my proper C++.