SDK Version 6.2
Pawn
-
Added GFX_drawSubImage(const center[GFX_POINT], winX, winY, winW, winH, opacity, colorKey, scaleX, scaleY, angle, GFX_mirror: mirror, id)
-
Added GFX_drawSubImageXY(x, y, winX, winY, winW, winH, opacity, colorKey, scaleX, scaleY, angle, GFX_mirror: mirror, id)
-
Reworked splashscreen
-
Added PlayRandomSound(const snd[], const volume, const bool: stopPlaying = true, size = sizeof(snd))
-
Added PlayLoopRandomSound(const snd[], const volume, const delayMin, const delayMax, dt, size = sizeof(snd))
C++
-
Added i32_t GFX_drawSubImage(spriteID_t id,i32_t x,i32_t y,u32_t rect_x,u32_t rect_y,u32_t rect_w,u32_t rect_h,u32_t opacity,u32_t colorKey,u32_t scale_x, u32_t scale_y,u32_t angle, u32_t mirror)
-
Reworked splashscreen
-
Added Cubios::SoundCollection(std::vector<std::string>& names)
-
Added Cubios::SoundCollection(std::vector<Cubios::Sound*>& sounds)
-
Added Cubios::SoundCollection::PlayRandomSound(uint8_t volume = 100, bool stopCurrent = true)
-
Added Cubios::SoundCollection::RepeatRandomSounds(uint8_t volume, int delayMin, int delayMax, int deltaTime)
-
Added Cubios::SoundCollection::Stop()
-
Added Cubios::SoundCollection::IsPlaying()
-
Added Cubios::Gfx::SpriteAtlas class
-
Added Cubios::Gfx::SpriteAtlasElement class
SDK Version 6.0
Pawn
-
Added getAppVersion(version[APP_VERSION])
-
Added ON_Packet(type, size, const pkt[])
-
Added GFX_setFillShader(color)
-
Added GFX_setLinearGradientShader(const start[GFX_POINT], const end[GFX_POINT], color0, color1)
-
Added GFX_setLinearGradientShaderXY(x0, y0, x1, y1, color0, color1)
-
Added GFX_setRadialGradientShader(const center[GFX_POINT], radius, color0, color1)
-
Added GFX_setRadialGradientShaderXY(x, y, radius, color0, color1)
-
Added GFX_removeShader()
-
Added GFX_removeBakedImage(id)
-
Added GFX_drawQrCode(const center[GFX_POINT], size, color0, color1, angle, id, const text[])
-
Added GFX_drawQrCodeXY(x,y, size, color0, color1, angle, id, const text[])
-
Added GFX_getAssetsCount()
-
Modified GFX_drawImage(const center[GFX_POINT], opacity, colorKey, scaleX, scaleY, angle, GFX_mirror: mirror, id)
-
Modified GFX_drawImageXY(x, y, opacity, colorKey, scaleX, scaleY, angle, GFX_mirror: mirror, id)
-
Modified GFX_drawBakedImage(const center[GFX_POINT], opacity, colorKey, scaleX, scaleY, angle, GFX_mirror: mirror, id)
-
Modified GFX_drawBakedImageXY(x, y, opacity, colorKey, scaleX, scaleY, angle, GFX_mirror: mirror, id)
-
Modified GFX_bakeImage(const id, const width, const height, const GFX_format: format, bool: overwrite = true)
-
Added SND_stop()
-
Added SND_isPlaying()
-
Added SND_getAssetsCount()
C++
-
Added i32_t getAppVersion(Cubios::AppVersion_t* version)
-
Added i32_t GFX_drawQrCodeXY(i32_t x, i32_t y, u32_t size, u32_t color0, u32_t color1, u32_t angle, u32_t id, const char* text)
-
Added i32_t GFX_removeBakedImage(spriteID_t id)
-
Added i32_t GFX_getAssetsCount()
-
Added i32_t GFX_setFillShader(u32_t color)
-
Added i32_t GFX_setLinearGradientShader(u32_t x0, u32_t y0, u32_t x1, u32_t y1, u32_t color0, u32_t color1)
-
Added i32_t GFX_setRadialGradientShader(u32_t x0, u32_t y0, u32_t radius, u32_t color0, u32_t color1)
-
Added i32_t GFX_removeShader()
-
Modified i32_t GFX_drawCircle(u32_t x, u32_t y, u32_t radius, u32_t width, u32_t color)
-
Modified i32_t GFX_drawRectangle(i32_t x0, i32_t y0, i32_t width, i32_t height, u32_t color)
-
Modified i32_t GFX_bakeImage(spriteID_t id, u32_t width, u32_t height, GFX_PixelFormat firmat, bool overwrite )
-
Modified i32_t GFX_drawImage(spriteID_t id, i32_t x, i32_t y, u32_t opacity, u32_t colorKey, u32_t scaleX, u32_t scaleY, u32_t angle, u32_t mirror )
-
Added i32_t SND_stop()
-
Added i32_t SND_isPlaying()
-
Added i32_t SND_getAssetsCount()
-
Added virtual void Application::on_ExternalMessage(uint8_t* pkt, u32_t size)
-
Added void Application::SendExternalMessage(uint32_t type, uint8_t* data, size_t size)
-
Added int Application::GetImageAssetsCount()
-
Added int Application::GetSoundAssetsCount()
-
Added static void Sound::Stop()
-
Added static void Sound::IsPlaying()
-
Added SaveMessage class
-
Added Scramble class
-
Added QRCode class
SDK Version 5.1
Pawn
- Added GFX_drawSector(const center[GFX_POINT], radius, from, to, color)
- Added GFX_drawSectorXY(x, y, radius, from, to, color)
C++
-
Added i32_t GFX_drawSector(i32_t x, i32_t y, u32_t radius, u32_t angle0, u32_t angle1, u32_t color)
-
Added bool Application::IsMasterModule()
-
Added void Color::SetAfSafe(float a)
-
Added SceneObject* SceneObject::SetAfSafe(float a)
-
Added const Math::Vec2 SceneObject::ScreenPosition()
-
Added void NetworkMessage::WriteSignedInt(int value, int bits)
-
Added int NetworkMessage::ReadSignedInt(int bits)
-
Improved support for negative rotation angles
-
Removed SceneObject* SceneObject::SetScreenPosition(const Math::Vec2& pos)
-
Removed SceneObject* SceneObject::SetScreenPosition(float x, float y)