MCPcopy Create free account
hub / github.com/creationix/node-sdl / GetFormatAlpha

Function GetFormatAlpha

src/helpers.cc:195–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 return Number::New(format->colorkey);
194}
195Handle<Value> GetFormatAlpha(Local<String> name, const AccessorInfo& info) {
196 SDL_PixelFormat* format = UnwrapPixelFormat(info.Holder());
197 return Number::New(format->alpha);
198}
199
200Handle<ObjectTemplate> MakePixelFormatTemplate() {
201 HandleScope handle_scope;

Callers

nothing calls this directly

Calls 1

UnwrapPixelFormatFunction · 0.85

Tested by

no test coverage detected