Jump to content

SDLine: Difference between revisions

From EDM2
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..."
 
Ak120 (talk | contribs)
 
(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 ([[PLINEINFO]]) - input : Pointer to LINEINFO data structure.
;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;  /* Pointer to LINEINFO data structure. */
PLINEINFO    pInput;  /* Pointer to LINEINFO data structure. */
PVOID        pOutput;  /* Reserved. */
PVOID        pOutput;  /* Reserved. */
ULONG        rc;      /* Return codes. */
ULONG        rc;      /* Return codes. */


rc = SDLine(pInput, pOutput);
rc = SDLine(pInput, pOutput);
</PRE>
</PRE>
== Related Functions ==
* [[]]


[[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

pInput (PLINEINFO) - input
Pointer to LINEINFO data structure.
pOutput (PVOID) - input
Reserved.

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);