Menu

SDL Macros

Imants

SDL macross

$SDL(param_name)

This macros returns values of global SDL parameter values.

  • SDK or AndroidSDK - returns path to android SDK folder
  • NDK or AndroidNDK - return path to android NDK folder
  • Target - Returns global android SDK target value which shoud be used as project target SDK. In case if target SDK is empty then returns min. SDK else returns max. SDK
  • Target.Target - Returns global android target SDK value.
  • Target.Min - Returns global android min. SDK value.
  • Target.Max - Returns global android max. SDK value.

$SDLProj(param_name)

This macros returns project specifics SDL parameter values.

  • CPU - Returns cpu arhitecture for native android libraries.
  • MainActivity - Returns name of main activity in android project
  • OpenGLES - Returns OpenGL Es version which will be used to create surface
  • PackageName - returns package name where main activity is located
  • ProjectName - returns project name which will be writen in manifest
  • Version - Returns android native library version

$SDLScreen(param_name)

This macro returns information abbout supported screen densities.

  • anyDensity - Returns information about whether the application includes resources to accommodate any screen density.
  • smallScreens - Returns information about whether the application supports "smaller" screen form-factors
  • normalScreens - Returns information about whether an application supports the "normal" screen form-factors
  • largeScreens - Returns information about whether the application supports larger screen form-factors
  • xlargeScreens - Returns information about whether the application supports extra large screen form-factors
  • compatibleWidthLimitDp - Returns smallest compatible screen width value id dp
  • smallScreens - Returns minimum smallestWidth required value in dp
  • smallScreens - Returns largest compatible screen width value id dp

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.