SDLine: Difference between revisions
Appearance
Created page with "SDLine is a preclipped line rendering routine. It processes line operations onto a destination linear address. SDLine is the default when OS2_PM_DRV_ENABLE: QueryDeviceSurface..." |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
SDLine is a preclipped line rendering routine. It processes line operations onto a destination linear address. SDLine is the default when OS2_PM_DRV_ENABLE: QueryDeviceSurface does not hook the pfnLine function directly. | SDLine is a preclipped line rendering routine. It processes line operations onto a destination linear address. SDLine is the default when OS2_PM_DRV_ENABLE: QueryDeviceSurface does not hook the pfnLine function directly. | ||
== Syntax == | == Syntax == | ||
SDLine(pInput, pOutput) | SDLine(pInput, pOutput) | ||
== Parameters == | == Parameters == | ||
; pInput ( | ;pInput (PLINEINFO) - input: Pointer to [[LINEINFO]] data structure. | ||
;pOutput ([[PVOID]]) - input: Reserved. | |||
; pOutput ([[PVOID]]) - input : Reserved. | |||
== Returns == | == Returns == | ||
; rc (ULONG) - returns : Return codes. | ; rc (ULONG) - returns : Return codes. | ||
Valid values are: | Valid values are: | ||
RC_SUCCESS | RC_SUCCESS | ||
RC_ERROR | RC_ERROR | ||
== Remarks == | == Remarks == | ||
'''Simulation support:''' This function is simulated by a handling routine in Revision 2.X of the graphics engine. | '''Simulation support:''' This function is simulated by a handling routine in Revision 2.X of the graphics engine. | ||
== Example Code == | == Example Code == | ||
Line 22: | Line 21: | ||
#include <os2.h> | #include <os2.h> | ||
PLINEINFO pInput; /* | PLINEINFO pInput; /* Pointer to LINEINFO data structure. */ | ||
PVOID pOutput; /* | PVOID pOutput; /* Reserved. */ | ||
ULONG rc; /* | ULONG rc; /* Return codes. */ | ||
rc = SDLine(pInput, pOutput); | rc = SDLine(pInput, pOutput); | ||
</PRE> | </PRE> | ||
[[Category:PDD]] | [[Category:PDD]] |
Latest revision as of 02:45, 26 March 2020
SDLine is a preclipped line rendering routine. It processes line operations onto a destination linear address. SDLine is the default when OS2_PM_DRV_ENABLE: QueryDeviceSurface does not hook the pfnLine function directly.
Syntax
SDLine(pInput, pOutput)
Parameters
Returns
- rc (ULONG) - returns
- Return codes.
Valid values are:
RC_SUCCESS RC_ERROR
Remarks
Simulation support: This function is simulated by a handling routine in Revision 2.X of the graphics engine.
Example Code
#include <os2.h> PLINEINFO pInput; /* Pointer to LINEINFO data structure. */ PVOID pOutput; /* Reserved. */ ULONG rc; /* Return codes. */ rc = SDLine(pInput, pOutput);