Comments (2)
Cause the calling convention is stdcall, The 'in' params are casted as call by reference in this case. This is to be compatible to the COM standard. So for FPC the "const" keyword is not necessary. For Delphi I don't know, but I think should be the same behavior.
from delphidx12.
The C++ const does not exactly behave like Delphi const.
However for instance; When pointers to structs are required and alignment is the same, you should use const in the Delphi translation too.
In this case the function should be (At least in Delphi XE7. From Delphi 10.3 Nullable types are introduced):
/// <summary> /// Create a D2D bitmap by copying a WIC bitmap. /// </summary> //<= Delphi 10.2 function CreateBitmapFromWicBitmap(wicBitmapSource: IWICBitmapSource; bitmapProperties: PD2D1_BITMAP_PROPERTIES1 = Nil; out bitmap: PID2D1Bitmap1): HResult; stdcall; //>= Delphi 10.3 function CreateBitmapFromWicBitmap(wicBitmapSource: IWICBitmapSource; bitmapProperties: D2D1_BITMAP_PROPERTIES1 = Nil; out bitmap: PID2D1Bitmap1): HResult; stdcall;
from delphidx12.
Related Issues (20)
- IDXGIOutput1.GetDisplayModeList1 last param
- some interface Very strange! HOT 1
- DX12.D3D11.pas IAGetVertexBuffers how use
- can you add XAudio2 HOT 2
- inline HOT 1
- Delphi does not have operator overload for Initialize. HOT 2
- D2D1 color definitions HOT 2
- Wrong translation of SAL Annotations
- Samples_FPC / Direct2D / TextAnimationSample
- Samples_FPC / Direct2D / WICAnimatedGIF - missing CMC.COMBaseAPI.pas
- Samples_FPC / Direct2D / WICAnimatedGIF
- Samples_FPC / DirectComposition Samples
- Tutorials / FPC / DirectX 12 / BraynzarSoft / Tut04 missing file DirectX.Math.pas
- Can not compile in Delphi because of the FPC compiler directive
- ID2D1BitmapRenderTarget.CreateSolidColorBrush Params Error? HOT 2
- interface Overloaded function?
- ID2D1Bitmap.GetSize() crash?
- DX12.WinCodec:error Interface: IWICImagingFactory2
- need Dcomp.pas and DCompTypes.pas HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delphidx12.