Falco Engine 3.9.0.1 (beta)
Utils.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3
4namespace FalcoEngine
5{
6 public static partial class SteamAPI
7 {
8 public static class Utils
9 {
10 public static Vector2 GetImageSize(int imageId)
11 {
12 Vector2 size = Vector2.zero;
13 INTERNAL_GetImageSize(imageId, ref size);
14 return size;
15 }
16
17 public static sbyte[] GetImageRGBA(int imageId)
18 {
19 return INTERNAL_GetImageRGBA(imageId);
20 }
21
22 [MethodImpl(MethodImplOptions.InternalCall)]
23 private static extern void INTERNAL_GetImageSize(int imageId, ref Vector2 size);
24
25 [MethodImpl(MethodImplOptions.InternalCall)]
26 private static extern sbyte[] INTERNAL_GetImageRGBA(int imageId);
27 }
28 }
29}
static Vector2 GetImageSize(int imageId)
Definition: Utils.cs:10
static sbyte[] GetImageRGBA(int imageId)
Definition: Utils.cs:17
static Vector2 zero
Definition: Vector2.cs:98