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

Function GetFormatBytes

src/helpers.cc:187–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 return Number::New(format->BitsPerPixel);
186}
187Handle<Value> GetFormatBytes(Local<String> name, const AccessorInfo& info) {
188 SDL_PixelFormat* format = UnwrapPixelFormat(info.Holder());
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);

Callers

nothing calls this directly

Calls 1

UnwrapPixelFormatFunction · 0.85

Tested by

no test coverage detected