Giter Club home page Giter Club logo

Comments (5)

slouken avatar slouken commented on September 13, 2024 1

SDL_AndroidGetActivity
SDL_AndroidGetCachePath
SDL_AndroidGetExternalStoragePath
SDL_AndroidGetExternalStorageState
SDL_AndroidGetInternalStoragePath
SDL_AndroidGetJNIEnv
SDL_Direct3D9GetAdapterIndex
SDL_GDKGetDefaultUser
SDL_GDKGetTaskQueue
SDL_WinRTGetDeviceFamily
SDL_WinRTGetFSPath
SDL_LinuxSetThreadPriority
SDL_LinuxSetThreadPriorityAndPolicy
SDL_iOSSetAnimationCallback
SDL_iOSSetEventPump

@icculus, should we move Get first, like we do with other functions, or is the platform important namespacing for these?

SDL_AtomicGet
SDL_AtomicGetPtr
SDL_AtomicSet
SDL_AtomicSetPtr

Atomic is an adjective in this case.

Also, maybe rename SDL_RenderViewportSet to SDL_IsRenderViewportSet as you already have some functions that look like SDL_Is*.

The other SDL_Is* functions are "is this a named thing" and the state questions have had "Is" removed, so they read more naturally.

from sdl.

captain0xff avatar captain0xff commented on September 13, 2024

Also, maybe rename SDL_RenderViewportSet to SDL_IsRenderViewportSet as you already have some functions that look like SDL_Is*.

from sdl.

icculus avatar icculus commented on September 13, 2024

@icculus, should we move Get first, like we do with other functions, or is the platform important namespacing for these?

Normally I would say "SDL_SetLinuxThreadPriority" is more correct, but I kinda want to keep a giant red flag on what these things do: non-portable, special case, but also maybe very important, things.

Agree on atomic stuff. You're doing an "atomic set" of a variable, not setting an atomic variable, although I recognize the difference between those two is quite murky. It's less murky when not using SDL_AtomicInt and instead the APIs that take a void pointer, though.

Is there a better word for the viewport one? SDL_RenderViewportInitialized or something? Don't feel strongly about this one, but I can definitely see the name being confusing (but also, any attempt to use it would clarify that confusion immediately, I assume, when it doesn't take any arguments and returns a bool).

from sdl.

slouken avatar slouken commented on September 13, 2024

Okay, I'm inclined to have the platform functions match the rest of the naming and leave the giant red flag in the documentation rather than being a quirk of the API naming convention that just confuses people.

from sdl.

slouken avatar slouken commented on September 13, 2024

Fixed, thanks!

from sdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.