Flutter Impeller
IMPELLER_HPP_NAMESPACE::Surface Class Reference

#include <impeller.hpp>

Inheritance diagram for IMPELLER_HPP_NAMESPACE::Surface:
IMPELLER_HPP_NAMESPACE::Object< ImpellerSurface, ImpellerSurfaceTraits >

Public Member Functions

 Surface (ImpellerSurface surface)
 
 Surface (ImpellerSurface surface, AdoptTag tag)
 
bool Draw (const DisplayList &display_list) const
 
bool Present () const
 
- Public Member Functions inherited from IMPELLER_HPP_NAMESPACE::Object< ImpellerSurface, ImpellerSurfaceTraits >
 Object ()=default
 
 Object (ImpellerSurface object)
 
 Object (ImpellerSurface object, AdoptTag)
 
 Object (Object &&other)
 
 Object (const Object &other)
 
 ~Object ()
 
Objectoperator= (Object &&other)
 
Objectoperator= (const Object &other)
 
ImpellerSurface Get () const
 
 operator bool () const
 

Static Public Member Functions

static Surface WrapFBO (const Context &context, uint64_t fbo, ImpellerPixelFormat format, const ImpellerISize &size)
 
static Surface WrapMetalDrawable (const Context &context, void *metal_drawable)
 

Detailed Description

See also
ImpellerSurface

Definition at line 1444 of file impeller.hpp.

Constructor & Destructor Documentation

◆ Surface() [1/2]

IMPELLER_HPP_NAMESPACE::Surface::Surface ( ImpellerSurface  surface)
inlineexplicit

Definition at line 1446 of file impeller.hpp.

Referenced by WrapFBO(), and WrapMetalDrawable().

◆ Surface() [2/2]

IMPELLER_HPP_NAMESPACE::Surface::Surface ( ImpellerSurface  surface,
AdoptTag  tag 
)
inline

Definition at line 1448 of file impeller.hpp.

1448 : Object(surface, tag) {}

Member Function Documentation

◆ Draw()

bool IMPELLER_HPP_NAMESPACE::Surface::Draw ( const DisplayList display_list) const
inline

◆ Present()

bool IMPELLER_HPP_NAMESPACE::Surface::Present ( ) const
inline
See also
ImpellerSurfacePresent

Definition at line 1488 of file impeller.hpp.

1488  {
1489  return gGlobalProcTable.ImpellerSurfacePresent(Get());
1490  }

References IMPELLER_HPP_NAMESPACE::Object< ImpellerSurface, ImpellerSurfaceTraits >::Get(), and IMPELLER_HPP_NAMESPACE::gGlobalProcTable.

◆ WrapFBO()

static Surface IMPELLER_HPP_NAMESPACE::Surface::WrapFBO ( const Context context,
uint64_t  fbo,
ImpellerPixelFormat  format,
const ImpellerISize size 
)
inlinestatic
See also
ImpellerSurfaceCreateWrappedFBONew

Definition at line 1453 of file impeller.hpp.

1456  {
1457  return Surface(
1458  gGlobalProcTable.ImpellerSurfaceCreateWrappedFBONew(context.Get(), //
1459  fbo, //
1460  format, //
1461  &size //
1462  ),
1464  }
Surface(ImpellerSurface surface)
Definition: impeller.hpp:1446

References IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), IMPELLER_HPP_NAMESPACE::gGlobalProcTable, IMPELLER_HPP_NAMESPACE::kAdopt, and Surface().

◆ WrapMetalDrawable()

static Surface IMPELLER_HPP_NAMESPACE::Surface::WrapMetalDrawable ( const Context context,
void *  metal_drawable 
)
inlinestatic
See also
ImpellerSurfaceCreateWrappedMetalDrawableNew

Definition at line 1469 of file impeller.hpp.

1470  {
1471  return Surface(
1472  gGlobalProcTable.ImpellerSurfaceCreateWrappedMetalDrawableNew(
1473  context.Get(), metal_drawable),
1475  }

References IMPELLER_HPP_NAMESPACE::Object< T, Traits >::Get(), IMPELLER_HPP_NAMESPACE::gGlobalProcTable, IMPELLER_HPP_NAMESPACE::kAdopt, and Surface().


The documentation for this class was generated from the following file: