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

Function GetFormatColorkey

src/helpers.cc:191–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 return Number::New(format->BytesPerPixel);
190}
191Handle<Value> GetFormatColorkey(Local<String> name, const AccessorInfo& info) {
192 SDL_PixelFormat* format = UnwrapPixelFormat(info.Holder());
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);

Callers

nothing calls this directly

Calls 1

UnwrapPixelFormatFunction · 0.85

Tested by

no test coverage detected