Difference between revisions of "NewPages"

(Make it match correctly (bigger than, instead of bigger than or equal))
m (Added notes how to fix some common issues)
 
Line 1: Line 1:
 
This is a list of new pages that aren't in the docs themselves yet (because they belong to an unreleased version). This page is here to help people who want to document for the next version.
 
This is a list of new pages that aren't in the docs themselves yet (because they belong to an unreleased version). This page is here to help people who want to document for the next version.
 +
 +
'''Note''': if function from unreleased version appear in "Functions" list (same for enums, ...), add <code><nowiki>[[Concept:Current]]</nowiki></code> to <code><nowiki>{{#ask: ... }}</nowiki></code> in listing (as done [https://love2d.org/w/index.php?title=love.system&type=revision&diff=27816&oldid=22358 here])
 +
 +
'''Another note''': if some function became deprecated (same for enums, ...) and list ("Functions", ...) does not show that it is deprecated, add <code><nowiki>| ?PrettyDeprecated</nowiki></code> to end of <code><nowiki>{{#ask: ... }}</nowiki></code> in listing
  
 
{{#ask: [[Since::>>{{CURRENTLOVE}}]]
 
{{#ask: [[Since::>>{{CURRENTLOVE}}]]

Latest revision as of 14:18, 26 May 2022

This is a list of new pages that aren't in the docs themselves yet (because they belong to an unreleased version). This page is here to help people who want to document for the next version.

Note: if function from unreleased version appear in "Functions" list (same for enums, ...), add [[Concept:Current]] to {{#ask: ... }} in listing (as done here)

Another note: if some function became deprecated (same for enums, ...) and list ("Functions", ...) does not show that it is deprecated, add | ?PrettyDeprecated to end of {{#ask: ... }} in listing

Body:getShapeGets the first Shape attached to the Body.
Body:getShapesReturns a table with all Shapes attached to the Body.
Body:hasCustomMassDataGets whether the Body's mass data has been set to custom values.
BufferDataFormatData formats of individual array elements GraphicsBuffers and Meshes.
ByteData:setStringReplaces all or part of the ByteData's memory with the contents of a string.
Contact:getShapesGets the two Shapess that are in contact.
Data:getStringGets the full Data as a string.
GamepadTypeTypes of gamepad controllers.
GamepadType (日本語)ゲームパッドコントローラーの機種。
GraphicsBufferLow-level data stored in graphics memory, including arrays of vertices, vertex indices, and custom collections of data accessible in Shaders.
GraphicsBuffer:clearClears the entire GraphicsBuffer or a specified byte range within it to zero.
GraphicsBuffer:getElementCountGets the total number of array elements in this GraphicsBuffer.
GraphicsBuffer:getElementStrideGets the size in bytes used by one array element of this GraphicsBuffer.
GraphicsBuffer:getSizeGets the total size in bytes of the GraphicsBuffer's contents.
Joystick:getGamepadTypeGets the GamepadType of the Joystick, if it's recognized as a gamepad.
Joystick:getGamepadType (日本語)ゲームパッドとして認識されている場合に、ジョイスティックの GamepadType を取得します。
Joystick:getJoystickTypeGets the JoystickType of the Joystick.
Joystick:getJoystickType (日本語)ジョイスティックの JoystickType を取得します。
Joystick:getPlayerIndexGets the player index of this Joystick. This corresponds to an indicator light on many common gamepads.
Joystick:getPlayerIndex (日本語)この Joystick のプレイヤーインデックスを取得します。これは一般的なゲームパッドに搭載されているインジケータライトと対応関係にあります。
Joystick:getSensorDataGets the latest data for the given sensor type for this Joystick
Joystick:hasSensorGets whether the specified sensor exists in the Joystick.
Joystick:isSensorEnabledGets whether the specified sensor is currently enabled on this Joystick.
Joystick:setPlayerIndexSets the player index of this Joystick. This corresponds to an indicator light on many common gamepads.
Joystick:setPlayerIndex (日本語)この Joystick のプレイヤーインデックスを設定します。これは一般的なゲームパッドに搭載されているインジケータライトと対応関係にあります。
Joystick:setSensorEnabledEnables or disables the specified sensor on this Joystick.
JoystickTypeTypes of Joysticks.
JoystickType (日本語)ジョイスティックの種類。
LoadModePossible load modes for love.filesystem.load.
ModifierKeyModifier keys.
SensorTypeKinds of sensors.
SoundData:copyFromCopies the specified section of the given SoundData into this one.
SoundData:sliceCreates a new copy of a section of this SoundData.
StreamTypeTypes of audio sources.
TextBatchOne or more precalculated strings of text stored in a Drawable object.
Texture:generateMipmapsGenerates mipmaps for the Texture, based on the contents of the highest-resolution mipmap level.
Texture:getMSAAGets the number of MSAA samples used for this Texture.
Texture:isCanvasGets whether the Texture has been created with canvas capabilities.
Texture:isFormatLinearGets whether the Texture was created with the linear (non-gamma corrected) flag set to true or with a non-sRGB PixelFormat.
Texture:renderToRender to the Texture using a function.
Texture:replacePixelsReplace the contents of a Texture with the contents of the given ImageData.
World:getShapesInAreaGets a list of Shapes inside the specified area
World:queryShapesInAreaCalls a function for each Shape inside the specified area.
World:rayCastAnyCasts a ray and returns an intersection point if the ray touched any Shape in the world.
World:rayCastClosestCasts a ray and returns the intersection point of the closest Shape touched by the ray, if any.
love.audio.getPlaybackDeviceGets the currently active playback device.
love.audio.getPlaybackDevicesGets a list of playback devices on the system.
love.audio.setPlaybackDeviceChange or reconnect the audio device.
love.audiodisconnectedCalled when the active audio device is disconnected.
love.event.restartRestarts the game without relaunching the executable.
... further results